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

pathlib.PosixPath dictionary values not supported #231

Closed
simon-liebehenschel opened this issue Mar 2, 2021 · 2 comments
Closed

pathlib.PosixPath dictionary values not supported #231

simon-liebehenschel opened this issue Mar 2, 2021 · 2 comments

Comments

@simon-liebehenschel
Copy link

Describe the bug
pathlib.PosixPath values are 'unprocessed'

To Reproduce

from deepdiff import DeepDiff

t1 = {'path': PosixPath('/foo/bar/'), }
t2 = {'path': PosixPath('/foo/bar/'), }
ddiff = DeepDiff(t1, t2, ignore_order=True)

Result:

>>> {'unprocessed': ["root['path']: /foo/bar and /foo/bar"]}

Expected behavior

Add support for the pathlib.PosixPath

Additional context

  • deepdiff 5.2.3
  • Python 3.9
  • Lubuntu 20.04
@seperman
Copy link
Owner

seperman commented Apr 7, 2021

Hi @AIGeneratedUsername
Thanks for reporting the issue. I will look into addressing it when I have a chance.

@seperman
Copy link
Owner

@artemisart fixed the issue on our dev branch.
I will keep you posted once I cut a release.

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

No branches or pull requests

2 participants