]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
pathlib tests: create test hierarchy without using class under test (#128200)
authorBarney Gale <barney.gale@gmail.com>
Mon, 23 Dec 2024 17:22:15 +0000 (17:22 +0000)
committerGitHub <noreply@github.com>
Mon, 23 Dec 2024 17:22:15 +0000 (17:22 +0000)
commitd61542b5ff1fe64705e5ce1bcc53048f14098dba
treead512bcc0a38c765b7ae1b0893b4d22ee51858ae
parentc5b0c90b62f1a10b0742db4bcd17da080d4e9111
pathlib tests: create test hierarchy without using class under test (#128200)

In the pathlib tests, avoid using the path class under test (`self.cls`) in
test setup. Instead we use `os` functions in `test_pathlib`, and direct
manipulation of `DummyPath` internal data in `test_pathlib_abc`.
Lib/test/test_pathlib/test_pathlib.py
Lib/test/test_pathlib/test_pathlib_abc.py