]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
[3.13] 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:08:17 +0000 (22:08 +0100)
committerGitHub <noreply@github.com>
Tue, 29 Oct 2024 21:08:17 +0000 (21:08 +0000)
commit35108c1871f41b9090cca231d59e1daded58d488
tree1ccabc8e97f1dd07947c5311f67522d1213d0b8b
parent8dc0575047559857cb923545a1c69d8ddc639a41
[3.13] GH-125866: Improve tests for `pathname2url()` and `url2pathname()` (GH-125993) (#126144)

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