Closed
Description
A number of tests use pathlib.Path
to test that the code supports path-like objects. They should use a special object that only implements the path protocol instead. This will avoid unintentional dependency on other pathlib.Path
methods and attributes and allow to test path-like objects with the bytes path.
Linked PRs
- gh-119064: Use os_helper.FakePath instead of pathlib.Path in tests #119065
- [3.13] gh-119064: Use os_helper.FakePath instead of pathlib.Path in tests (GH-119065) #119087
- [3.12] gh-119064: Use os_helper.FakePath instead of pathlib.Path in tests (GH-119065) #119088
- [3.11] gh-119064: Use os_helper.FakePath instead of pathlib.Path in tests (GH-119065) #119089