]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
GH-110109: pathlib tests: store base directory as test class attribute (#113221)
authorBarney Gale <barney.gale@gmail.com>
Sun, 17 Dec 2023 00:07:32 +0000 (00:07 +0000)
committerGitHub <noreply@github.com>
Sun, 17 Dec 2023 00:07:32 +0000 (00:07 +0000)
commit2f0ec7fa9450caeac820a6dc819d17d14fd16a4b
tree4f2e5e610402cf747bbad844863c921fff5a6178
parentd91e43ed7839b601cbeadd137d89e69e2cc3efda
GH-110109: pathlib tests: store base directory as test class attribute (#113221)

Store the test base directory as a class attribute named `base` rather than
module constants named `BASE`.

The base directory is a local file path, and therefore not ideally suited
to the pathlib ABC tests. In a future commit we'll change its value in
`test_pathlib_abc.py` such that it points to a totally fictitious path, which
will help to ensure we're not touching the local filesystem.
Lib/test/test_pathlib/test_pathlib.py
Lib/test/test_pathlib/test_pathlib_abc.py