-
-
Notifications
You must be signed in to change notification settings - Fork 31.8k
Tests for path joining in test_pathlib
are misplaced
#112675
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Labels
Comments
barneygale
added a commit
to barneygale/cpython
that referenced
this issue
Dec 3, 2023
…est_ntpath` 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`.
barneygale
added a commit
that referenced
this issue
Dec 7, 2023
…path` (#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`.
aisk
pushed a commit
to aisk/cpython
that referenced
this issue
Feb 11, 2024
…est_ntpath` (python#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`.
Glyphack
pushed a commit
to Glyphack/cpython
that referenced
this issue
Sep 2, 2024
…est_ntpath` (python#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`.
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Pathlib originally implemented its own path joining algorithm with its own tests. Nowadays pathlib now calls through to
os.path.join()
(see #95450), but there's still a handful of tests for path joining remaining that are better suited totest_posixpath
andtest_ntpath
.Affects the
test_drive_root_parts_common
andtest_drive_root_parts
test methods.Linked PRs
test_posixpath
andtest_ntpath
#112676The text was updated successfully, but these errors were encountered: