]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
GH-112675: Move path joining tests into `test_posixpath` and `test_ntpath` (#112676)
authorBarney Gale <barney.gale@gmail.com>
Thu, 7 Dec 2023 21:45:40 +0000 (21:45 +0000)
committerGitHub <noreply@github.com>
Thu, 7 Dec 2023 21:45:40 +0000 (21:45 +0000)
commit28b2b7407c25d448ff5d8836efabbe7c02316568
treef7b6eaced0dbdafbeb04470b07fe35492d73d3eb
parent2c3906bc4b7ee62bf9d122a6fdd98b6ae330643f
GH-112675: Move path joining tests into `test_posixpath` and `test_ntpath` (#112676)

In `test_pathlib`, the `check_drive_root_parts` test methods evaluated
both joining and parsing/normalisation of paths. This dates from a time
when pathlib implemented both functions itself, but nowadays path joining
is done with `posixpath.join()` and `ntpath.join()`.

This commit moves the joining-related test cases into `test_posixpath` and
`test_ntpath`.
Lib/test/test_ntpath.py
Lib/test/test_pathlib.py
Lib/test/test_posixpath.py