omegaconf icon indicating copy to clipboard operation
omegaconf copied to clipboard

test_nodes fails for Python >= 3.12 because of changes to Path hashing

Open bfolie opened this issue 9 months ago • 0 comments

For Python >= 3.12, test_nodes.py:test_eq fails with parameters node = PathNode(Path("hello.txt")), value = "hello.txt". Example on CircleCI. This is because Path(str) and str have the same hash as of Python 3.12, whereas previously they did not.

I do not know if this change in hashing behavior has real consequences or if the test just needs to be changed.

bfolie avatar Mar 10 '25 22:03 bfolie