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

Bugfix deephash for paths #382

Merged
merged 3 commits into from
Mar 31, 2023
Merged

Conversation

maggelus
Copy link
Contributor

@maggelus maggelus commented Mar 31, 2023

Hashes for pathlib.Path objects are always the same, regardless of the contents (see test and Issue #393). I propose a bugfix for this problem by adding a special case for the pathlib.Path objects.

@codecov-commenter
Copy link

Codecov Report

Merging #382 (ec405b0) into dev (03179f7) will increase coverage by 0.00%.
The diff coverage is 100.00%.

📣 This organization is not using Codecov’s GitHub App Integration. We recommend you install it so Codecov can continue to function properly for your repositories. Learn more

@@           Coverage Diff           @@
##              dev     #382   +/-   ##
=======================================
  Coverage   98.76%   98.76%           
=======================================
  Files          14       14           
  Lines        3232     3238    +6     
=======================================
+ Hits         3192     3198    +6     
  Misses         40       40           
Impacted Files Coverage Δ
deepdiff/deephash.py 99.36% <100.00%> (+0.01%) ⬆️

Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here.

Copy link
Owner

@seperman seperman left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM!

@seperman seperman merged commit 98c61ab into seperman:dev Mar 31, 2023
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.

None yet

3 participants