cpython/Lib/test/test_pathlib
Barney Gale 8e08ac9f32
GH-123599: url2pathname(): don't call gethostbyname() by default (#132610)
Follow-up to 66cdb2bd8a.

Add *resolve_host* keyword-only argument to `url2pathname()`, defaulting to
false. When set to true, we call `socket.gethostbyname()` to resolve the
URL hostname.

Co-authored-by: Bénédikt Tran <10796600+picnixz@users.noreply.github.com>
Co-authored-by: Adam Turner <9087854+AA-Turner@users.noreply.github.com>
Co-authored-by: Steve Dower <steve.dower@microsoft.com>
2025-05-05 17:03:42 +00:00
..
support GH-128520: pathlib ABCs tests: use explicit text encoding (#133105) 2025-04-28 20:18:56 +01: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(): don't call gethostbyname() by default (#132610) 2025-05-05 17:03:42 +00:00
test_read.py GH-128520: pathlib ABCs tests: use explicit text encoding (#133105) 2025-04-28 20:18:56 +01:00
test_write.py GH-128520: pathlib ABCs tests: use explicit text encoding (#133105) 2025-04-28 20:18:56 +01:00