]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
GH-110109: Test pure functionality of `pathlib.Path` user subclasses (#112242)
authorBarney Gale <barney.gale@gmail.com>
Sat, 18 Nov 2023 17:06:10 +0000 (17:06 +0000)
committerGitHub <noreply@github.com>
Sat, 18 Nov 2023 17:06:10 +0000 (17:06 +0000)
commit607b5e30c67bad35b90240d9ac176131e51423a5
tree43c6ba0b10c5bd1a9386ef2be344a2450dd83d8c
parent9c7c8bacc140b0ce7bbb17b1756a1ea9fb376983
GH-110109: Test pure functionality of `pathlib.Path` user subclasses (#112242)

Add `PurePathTest` as a superclass of `PathTest`, and therefore also
`PathSubclassTest`. This adds coverage of pure functionality in user
subclasses of `pathlib.Path`.

Remove `PosixPathAsPureTest` and `WindowsPathAsPureTest`, as they
now duplicate `PosixPathTest` and `WindowsPathTest`.

This makes the MROs of test unit classes match the MROs of pathlib
classes.
Lib/test/test_pathlib.py