Vestigial pathlib 'flavour' tests make assertions about internal method #103379
Labels
3.12
bugs and security fixes
tests
Tests in the Lib/test dir
topic-pathlib
type-bug
An unexpected behavior, bug, or error
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
andparts
attributes. I think.Linked PRs
pathlib.PurePath._parse_path
#103380The text was updated successfully, but these errors were encountered: