Skip to content

pathlib.PosixPath dictionary values not supported #231

Closed
@simon-liebehenschel

Description

@simon-liebehenschel

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions