]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
pathlib tests: move `walk()` tests into their own classes (GH-126651)
authorBarney Gale <barney.gale@gmail.com>
Sun, 24 Nov 2024 02:31:00 +0000 (02:31 +0000)
committerGitHub <noreply@github.com>
Sun, 24 Nov 2024 02:31:00 +0000 (18:31 -0800)
commit4ea71278caedb3d12a45f87c757418b8684ba7dd
tree2d94fabd62d760bf985756bfa0b6584e5e5f89b7
parentdbd23790dbd662169905be6300259992639d4e69
pathlib tests: move `walk()` tests into their own classes (GH-126651)

Move tests for Path.walk() into a new PathWalkTest class, and apply a similar change in tests for the ABCs. This allows us to properly tear down the walk test hierarchy in tearDown(), rather than leaving it to os_helper.rmtree().
Lib/test/test_pathlib/test_pathlib.py
Lib/test/test_pathlib/test_pathlib_abc.py