]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
GH-113528: Move a few misplaced pathlib tests (#113527)
authorBarney Gale <barney.gale@gmail.com>
Mon, 8 Jan 2024 19:17:18 +0000 (19:17 +0000)
committerGitHub <noreply@github.com>
Mon, 8 Jan 2024 19:17:18 +0000 (19:17 +0000)
commita9df076d7d5e113aab4dfd32118a14b62537a8a2
tree06b060f293770ba7cd1913639e0329d8394bef4c
parentaef375f56ec93740f0a9b5031c3d2063c553fc12
GH-113528: Move a few misplaced pathlib tests (#113527)

`PurePathBase` does not define `__eq__()`, and so we have no business checking path equality in `test_eq_common` and `test_equivalences`. The tests only pass at the moment because we define the test class's `__eq__()` for use elsewhere.

Also move `test_parse_path_common` into the main pathlib test suite. It exercises a private `_parse_path()` method that will be moved to `PurePath` soon.

Lastly move a couple more tests concerned with optimisations and path normalisation.
Lib/test/test_pathlib/test_pathlib.py
Lib/test/test_pathlib/test_pathlib_abc.py