cpython/Lib/test/test_pathlib
Barney Gale 66cdb2bd8a
GH-123599: url2pathname(): handle authority section in file URL (#126844)
In `urllib.request.url2pathname()`, if the authority resolves to the
current host, discard it. If an authority is present but resolves somewhere
else, then on Windows we return a UNC path (as before), and on other
platforms we raise `URLError`.

Affects `pathlib.Path.from_uri()` in the same way.

Co-authored-by: Adam Turner <9087854+AA-Turner@users.noreply.github.com>
Co-authored-by: Bénédikt Tran <10796600+picnixz@users.noreply.github.com>
2025-04-10 19:58:04 +00:00
..
support GH-128520: pathlib ABCs: allow tests to be run externally (#131315) 2025-03-21 22:18:20 +00:00
__init__.py
test_copy.py GH-128520: pathlib ABCs: allow tests to be run externally (#131315) 2025-03-21 22:18:20 +00:00
test_join.py GH-128520: pathlib ABCs: allow tests to be run externally (#131315) 2025-03-21 22:18:20 +00:00
test_join_posix.py GH-128520: pathlib ABCs: allow tests to be run externally (#131315) 2025-03-21 22:18:20 +00:00
test_join_windows.py GH-128520: pathlib ABCs: allow tests to be run externally (#131315) 2025-03-21 22:18:20 +00:00
test_pathlib.py GH-123599: url2pathname(): handle authority section in file URL (#126844) 2025-04-10 19:58:04 +00:00
test_read.py GH-128520: pathlib ABCs: validate magic_open() arguments (#131617) 2025-03-24 15:13:18 +00:00
test_write.py GH-128520: pathlib ABCs: validate magic_open() arguments (#131617) 2025-03-24 15:13:18 +00:00