https://github.com/python/cpython/commit/2a49c54ab2c5cf0ee96a8e577971c1525a966940
commit: 2a49c54ab2c5cf0ee96a8e577971c1525a966940
branch: main
author: Hood Chatham <[email protected]>
committer: freakboy3742 <[email protected]>
date: 2025-06-18T10:59:01+08:00
summary:

gh-127146: Emscripten: Skip test_url2pathname_resolve_host (#135634)

Emscripten currently `gethostbyname_r()` returns an incorrect
IP address for `localhost`. Will be resolved by upstream PR:
https://github.com/emscripten-core/emscripten/pull/24593

files:
M Lib/test/test_urllib.py

diff --git a/Lib/test/test_urllib.py b/Lib/test/test_urllib.py
index bc1030eea60c35..1d889ae7cf458f 100644
--- a/Lib/test/test_urllib.py
+++ b/Lib/test/test_urllib.py
@@ -1569,6 +1569,7 @@ def test_url2pathname_require_scheme_errors(self):
                     urllib.request.url2pathname,
                     url, require_scheme=True)
 
+    @unittest.skipIf(support.is_emscripten, "Fixed by 
https://github.com/emscripten-core/emscripten/pull/24593";)
     def test_url2pathname_resolve_host(self):
         fn = urllib.request.url2pathname
         sep = os.path.sep

_______________________________________________
Python-checkins mailing list -- [email protected]
To unsubscribe send an email to [email protected]
https://mail.python.org/mailman3//lists/python-checkins.python.org
Member address: [email protected]

Reply via email to