]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
[3.14] gh-127146: Emscripten: Skip test_url2pathname_resolve_host (GH-135634) (#135651)
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>
Wed, 18 Jun 2025 03:23:31 +0000 (05:23 +0200)
committerGitHub <noreply@github.com>
Wed, 18 Jun 2025 03:23:31 +0000 (03:23 +0000)
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
(cherry picked from commit 2a49c54ab2c5cf0ee96a8e577971c1525a966940)

Co-authored-by: Hood Chatham <roberthoodchatham@gmail.com>
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