]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
GH-89812: Churn `pathlib.Path` test methods (#105807)
authorBarney Gale <barney.gale@gmail.com>
Thu, 15 Jun 2023 01:31:30 +0000 (02:31 +0100)
committerGitHub <noreply@github.com>
Thu, 15 Jun 2023 01:31:30 +0000 (01:31 +0000)
commit10bf2cd404320252ef162d5699cb7ce52a970d44
treecdacd308435da4e7a91237c0e40abe97285ea186
parent12b6d844d8819955508bd86db106f17516be3f77
GH-89812: Churn `pathlib.Path` test methods (#105807)

Re-arrange `pathlib.Path` test methods in source code. No other changes.

The test methods are arranged in two groups. The first group checks
`stat()`, `open()`, `iterdir()`, `readlink()`, and derived methods like
`exists()`, `read_text()`, `glob()` and `resolve()`. The second group
checks all other `Path` methods. To minimise the diff I've maintained the
method order within groups where possible.

This patch prepares the ground for a new `_AbstractPath` class, which will
support methods in the first group above. By churning the test methods
here, subsequent patches will be easier to review and less likely to break
things.
Lib/test/test_pathlib.py