]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
GH-125866: Improve tests for `pathname2url()` and `url2pathname()` (#125993)
authorBarney Gale <barney.gale@gmail.com>
Tue, 29 Oct 2024 20:44:57 +0000 (20:44 +0000)
committerGitHub <noreply@github.com>
Tue, 29 Oct 2024 20:44:57 +0000 (20:44 +0000)
commit6742f14dfd3fa8ba8a245efa21a4f723160d93d4
treec0939760b98a018b27f51776a40058f21c3611ca
parent802d405ff1233a48004a7c9b302baa76291514d1
GH-125866: Improve tests for `pathname2url()` and `url2pathname()` (#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()`.
Lib/test/test_urllib.py