You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Vestigial pathlib 'flavour' tests make assertions about internal method #103379
Pathlib used to contain internal "flavour classes" with their own test suites. These were removed in a68e585 (#31691) and e5b08dd (#101002) along with most of their tests. Only the tests for the internal _parse_path() method remain now.
These tests make assertions about an internal method that we're liable to change, rename or remove in future. They should instead make assertions about the public PurePath.drive, root and parts attributes. I think.
Activity
pythonGH-103379: Fix up old tests for `pathlib.PurePath._parse_parts()`
GH-103379: Fix up old tests for `pathlib.PurePath._parse_path` (GH-10…
barneygale commentedon Apr 9, 2023
Fixed in 0a675f4
pythonGH-103379: Fix up old tests for `pathlib.PurePath._parse_path` (p…
pythonGH-103379: Fix up old tests for `pathlib.PurePath._parse_path` (p…