From 65efbf9e2eff31760a0f6c633309464c2b30623d Mon Sep 17 00:00:00 2001 From: Hood Chatham Date: Tue, 17 Jun 2025 11:17:26 -0700 Subject: [PATCH] gh-127146: Emscripten: Skip test_url2pathname_resolve_host It's failing because `gethostbyname_r()` is returning an incorrect ip address for `localhost`. Will be resolved by upstream PR: https://github.com/emscripten-core/emscripten/pull/24593 --- Lib/test/test_urllib.py | 1 + 1 file changed, 1 insertion(+) 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