]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
gh-127146: Emscripten: Skip test_url2pathname_resolve_host (#135634)
authorHood Chatham <roberthoodchatham@gmail.com>
Wed, 18 Jun 2025 02:59:01 +0000 (19:59 -0700)
committerGitHub <noreply@github.com>
Wed, 18 Jun 2025 02:59:01 +0000 (10:59 +0800)
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

Lib/test/test_urllib.py

index bc1030eea60c3520ab5acf909c3d5b77dc68c30f..1d889ae7cf458f73a836b7e374145007b4e8ed78 100644 (file)
@@ -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