]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
[3.12] GH-125866: Improve tests for `pathname2url()` and `url2pathname()` (GH-125993...
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>
Tue, 29 Oct 2024 21:02:12 +0000 (22:02 +0100)
committerGitHub <noreply@github.com>
Tue, 29 Oct 2024 21:02:12 +0000 (21:02 +0000)
commitb267b6241b8ac9eb6ceb4c65aaf4341d7e54510e
tree866d157657e431c3da6bcbc9c88e8347e74ae3e0
parentdb0a1b8c1291bf1aa9e016e43bc2f7ed0acf83bd
[3.12] GH-125866: Improve tests for `pathname2url()` and `url2pathname()` (GH-125993) (#126145)

GH-125866: Improve tests for `pathname2url()` and `url2pathname()` (GH-125993)

Merge `URL2PathNameTests` and `PathName2URLTests` test cases (which test
only the Windows-specific implementations from `nturl2path`) into the main
`Pathname_Tests` test case for these functions.

Copy/port some test cases for `pathlib.Path.as_uri()` and `from_uri()`.
(cherry picked from commit 6742f14dfd3fa8ba8a245efa21a4f723160d93d4)

Co-authored-by: Barney Gale <barney.gale@gmail.com>
Lib/test/test_urllib.py