]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
gh-127146: Emscripten: more regular stack overflow skips (#136708)
authorHood Chatham <roberthoodchatham@gmail.com>
Wed, 16 Jul 2025 14:02:25 +0000 (16:02 +0200)
committerGitHub <noreply@github.com>
Wed, 16 Jul 2025 14:02:25 +0000 (14:02 +0000)
Makes the Emscripten stack overflow skip message consistent with WASI,
and replaces some ad-hoc skips.

Lib/test/support/__init__.py
Lib/test/test_descr.py
Lib/test/test_xml_etree_c.py

index fd39d3f7c95368221102454d955289e2cbb79707..196a2e5c600e2457ba2b2fcb2c916f4afd30e74b 100644 (file)
@@ -570,7 +570,7 @@ is_emscripten = sys.platform == "emscripten"
 is_wasi = sys.platform == "wasi"
 
 def skip_emscripten_stack_overflow():
-    return unittest.skipIf(is_emscripten, "Exhausts limited stack on Emscripten")
+    return unittest.skipIf(is_emscripten, "Exhausts stack on Emscripten")
 
 def skip_wasi_stack_overflow():
     return unittest.skipIf(is_wasi, "Exhausts stack on WASI")
index f6ec2cf5ce8b5cb21c288ef6fc81a71f9d8b0c6f..8da6647c3f71fcccd0380cd62340eddf6a940a67 100644 (file)
@@ -3942,7 +3942,7 @@ class ClassPropertiesAndMethods(unittest.TestCase):
         # it as a leak.
         del C.__del__
 
-    @unittest.skipIf(support.is_emscripten, "Seems to works in Pyodide?")
+    @support.skip_emscripten_stack_overflow()
     @support.skip_wasi_stack_overflow()
     def test_slots_trash(self):
         # Testing slot trash...
index 9ed0f4096a45e3c683a50dd5ae26406fb182d42f..270b9d6da8e7b9ed564eacbc179209f4e625c5b4 100644 (file)
@@ -58,7 +58,7 @@ class MiscTests(unittest.TestCase):
         self.assertEqual(element.attrib, {'A': 'B', 'C': 'D'})
 
     @support.skip_wasi_stack_overflow()
-    @unittest.skipIf(support.is_emscripten, "segfaults")
+    @support.skip_emscripten_stack_overflow()
     def test_trashcan(self):
         # If this test fails, it will most likely die via segfault.
         e = root = cET.Element('root')