Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix _empty_path AttributeError for path fieldtype #133

Merged
merged 1 commit into from
Aug 12, 2024

Conversation

yunzheng
Copy link
Member

On Python 3.11 and lower, the returned path object from .parent did not have _empty_path variable set due to how pathlib creates the path object

Fixes #131

On Python 3.11 and lower, the returned path object from .parent did not
have _empty_path variable set due to how pathlib creates the path object

Fixes #131
Copy link

codecov bot commented Aug 10, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 83.92%. Comparing base (beabaa6) to head (439f394).

Additional details and impacted files
@@            Coverage Diff             @@
##             main     #133      +/-   ##
==========================================
+ Coverage   83.89%   83.92%   +0.02%     
==========================================
  Files          34       34              
  Lines        3428     3434       +6     
==========================================
+ Hits         2876     2882       +6     
  Misses        552      552              
Flag Coverage Δ
unittests 83.92% <100.00%> (+0.02%) ⬆️

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@Miauwkeru Miauwkeru self-requested a review August 12, 2024 07:48
@yunzheng yunzheng merged commit 21cad29 into main Aug 12, 2024
20 checks passed
@yunzheng yunzheng deleted the fix/empty-path-variable branch August 12, 2024 14:49
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Empty value in path field type broken on 3.11 and below
2 participants