FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

GH-112675: Move path joining tests into `test_posixpath` and `test_ntpath` by barneygale · Pull Request #112676 · python/cpython · GitHub

/ cpython Public

GH-112675: Move path joining tests into test_posixpath and test_ntpath - #112676

Merged
barneygale merged 1 commit into
python:mainfrom
barneygale:reorg-path-joining-tests
Dec 7, 2023
Merged

GH-112675: Move path joining tests into test_posixpath and test_ntpath#112676
barneygale merged 1 commit into
python:mainfrom
barneygale:reorg-path-joining-tests

Conversation

barneygale commented Dec 3, 2023
edited by bedevere-app Bot
Loading

Copy link
Copy Markdown
Contributor

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 PR moves the joining-related test cases into test_posixpath and test_ntpath.

…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 tests Tests in the Lib/test dir skip news topic-pathlib labels Dec 3, 2023
barneygale merged commit 28b2b74 into python:main Dec 7, 2023
aisk pushed a commit to aisk/cpython that referenced this pull request 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 pull request 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`.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode characters
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

skip news tests Tests in the Lib/test dir topic-pathlib

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant


Back | FazBrowse Home | New Git URL