]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
GH-89812: Miscellaneous pathlib test improvements (GH-106063)
authorBarney Gale <barney.gale@gmail.com>
Sat, 1 Jul 2023 12:29:02 +0000 (13:29 +0100)
committerGitHub <noreply@github.com>
Sat, 1 Jul 2023 12:29:02 +0000 (12:29 +0000)
commitcbc33e4aede10f4d5799d9f7aa9ec5b91414f65b
tree661c28d684de589d19bf2e07175efd70b9051c0d
parent6e01055e15c252185b118956d545bfad03ae11ed
GH-89812: Miscellaneous pathlib test improvements (GH-106063)

- Split out dedicated test for unbuffered `open()`
- Split out dedicated test for `is_mount()` at the filesystem root
- Avoid `os.stat()` when checking that empty paths point to '.'
- Remove unnecessary `rmtree()` call
- Remove unused `assertSame()` method
Lib/test/test_pathlib.py