From: Hood Chatham Date: Wed, 18 Jun 2025 02:59:01 +0000 (-0700) Subject: gh-127146: Emscripten: Skip test_url2pathname_resolve_host (#135634) X-Git-Tag: v3.15.0a1~1271 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=2a49c54ab2c5cf0ee96a8e577971c1525a966940;p=thirdparty%2FPython%2Fcpython.git 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 --- diff --git a/Lib/test/test_urllib.py b/Lib/test/test_urllib.py index bc1030eea60c..1d889ae7cf45 100644 --- a/Lib/test/test_urllib.py +++ b/Lib/test/test_urllib.py @@ -1569,6 +1569,7 @@ class Pathname_Tests(unittest.TestCase): 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