-
-
Notifications
You must be signed in to change notification settings - Fork 32.4k
Closed
Labels
3.12only security fixesonly security fixes3.13bugs and security fixesbugs and security fixes3.14bugs and security fixesbugs and security fixestestsTests in the Lib/test dirTests in the Lib/test dir
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
AlexWaygood and barneygale
Metadata
Metadata
Assignees
Labels
3.12only security fixesonly security fixes3.13bugs and security fixesbugs and security fixes3.14bugs and security fixesbugs and security fixestestsTests in the Lib/test dirTests in the Lib/test dir