◐ Shell
clean mode source ↗

GH-89812: Clean up pathlib tests. by barneygale · Pull Request #104829 · python/cpython

@barneygale

Merge PurePathTest into _BasePurePathTest, and PathTest into _BasePathTest. No change of coverage.

Merge `PurePathTest` into `_BasePurePathTest`, and `PathTest` into
`_BasePathTest`.

@barneygale

Note that the _BasePurePathTest and _BasePathTest classes reflect a time long ago when pathlib had pathlib._BasePurePath and pathlib._BasePath classes. These haven't existed since pathlib was an independent package. We may re-introduce them in future (see #104810), but they will look rather different!

@barneygale barneygale changed the title Clean up pathlib tests. GH-89812: Clean up pathlib tests.

Jun 3, 2023

@ambv

@ambv

I currently don't have a Windows box to test the coverage with, but I tested on macOS and Linux and this looks good to me. Let's go for it! Thanks for the cleanup, Barney! ✨ 🍰 ✨

@ambv

@barneygale

Thank you for the review, Łukasz!