Skip to content

GH-110109: Test pure functionality of pathlib.Path user subclasses - #112242

Merged
barneygale merged 1 commit into
python:mainfrom
barneygale:pathlib-tests-match-pathlib-mro
Nov 18, 2023
Merged

GH-110109: Test pure functionality of pathlib.Path user subclasses#112242
barneygale merged 1 commit into
python:mainfrom
barneygale:pathlib-tests-match-pathlib-mro

Conversation

@barneygale

@barneygalebarneygale commented Nov 18, 2023

Copy link
Copy Markdown
Contributor

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.

…asses
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.
@barneygalebarneygale added tests Tests in the Lib/test dir skip news topic-pathlib labels Nov 18, 2023
@bedevere-appbedevere-appBot mentioned this pull request Nov 18, 2023
8 tasks
@barneygale
barneygale merged commit 607b5e3 into python:mainNov 18, 2023
aisk pushed a commit to aisk/cpython that referenced this pull request Feb 11, 2024
…asses (python#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.
Glyphack pushed a commit to Glyphack/cpython that referenced this pull request Sep 2, 2024
…asses (python#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.
Sign up for freeto join this conversation on GitHub. Already have an account? Sign in to comment

Labels

skip newstestsTests in the Lib/test dirtopic-pathlib

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant

@barneygale