aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/Lib/test
diff options
context:
space:
mode:
authorHood Chatham <roberthoodchatham@gmail.com>2025-05-20 14:41:14 -0400
committerGitHub <noreply@github.com>2025-05-20 18:41:14 +0000
commit91e6a58e2d6fd23e886135457e28dfa980ec49ed (patch)
tree277b5614cebd26c9d7a5611b04c653a3285e6c8e /Lib/test
parent3b7888bf3d43b903f0a7ebd16f39d8bb61dfbb9e (diff)
downloadcpython-91e6a58e2d6fd23e886135457e28dfa980ec49ed.tar.gz
cpython-91e6a58e2d6fd23e886135457e28dfa980ec49ed.zip
gh-127146: xfail more Emscripten stack overflows (#134358)
Adds some additional test xfails for Emscripten stack overflows. Also corrects a test skip for test_io.
Diffstat (limited to 'Lib/test')
-rw-r--r--Lib/test/test_builtin.py1
-rw-r--r--Lib/test/test_capi/test_misc.py2
-rw-r--r--Lib/test/test_descr.py1
-rw-r--r--Lib/test/test_exceptions.py1
-rw-r--r--Lib/test/test_io.py2
5 files changed, 6 insertions, 1 deletions
diff --git a/Lib/test/test_builtin.py b/Lib/test/test_builtin.py
index 31597a320d4..f1f877c47a1 100644
--- a/Lib/test/test_builtin.py
+++ b/Lib/test/test_builtin.py
@@ -1120,6 +1120,7 @@ class BuiltinTest(ComplexesAreIdenticalMixin, unittest.TestCase):
self.check_iter_pickle(f1, list(f2), proto)
@support.skip_wasi_stack_overflow()
+ @support.skip_emscripten_stack_overflow()
@support.requires_resource('cpu')
def test_filter_dealloc(self):
# Tests recursive deallocation of nested filter objects using the
diff --git a/Lib/test/test_capi/test_misc.py b/Lib/test/test_capi/test_misc.py
index a597f23a992..f74694a7a74 100644
--- a/Lib/test/test_capi/test_misc.py
+++ b/Lib/test/test_capi/test_misc.py
@@ -412,10 +412,12 @@ class CAPITest(unittest.TestCase):
L = MyList((L,))
@support.requires_resource('cpu')
+ @support.skip_emscripten_stack_overflow()
def test_trashcan_python_class1(self):
self.do_test_trashcan_python_class(list)
@support.requires_resource('cpu')
+ @support.skip_emscripten_stack_overflow()
def test_trashcan_python_class2(self):
from _testcapi import MyList
self.do_test_trashcan_python_class(MyList)
diff --git a/Lib/test/test_descr.py b/Lib/test/test_descr.py
index 76937432a43..14026531e22 100644
--- a/Lib/test/test_descr.py
+++ b/Lib/test/test_descr.py
@@ -4523,6 +4523,7 @@ class ClassPropertiesAndMethods(unittest.TestCase):
del o
@support.skip_wasi_stack_overflow()
+ @support.skip_emscripten_stack_overflow()
@support.requires_resource('cpu')
def test_wrapper_segfault(self):
# SF 927248: deeply nested wrappers could cause stack overflow
diff --git a/Lib/test/test_exceptions.py b/Lib/test/test_exceptions.py
index d177e3dc0f5..cfd4a3e8769 100644
--- a/Lib/test/test_exceptions.py
+++ b/Lib/test/test_exceptions.py
@@ -1429,6 +1429,7 @@ class ExceptionTests(unittest.TestCase):
self.assertIn("maximum recursion depth exceeded", str(exc))
@support.skip_wasi_stack_overflow()
+ @support.skip_emscripten_stack_overflow()
@cpython_only
@support.requires_resource('cpu')
def test_trashcan_recursion(self):
diff --git a/Lib/test/test_io.py b/Lib/test/test_io.py
index 5a8f1949baa..90680c6d47a 100644
--- a/Lib/test/test_io.py
+++ b/Lib/test/test_io.py
@@ -572,7 +572,7 @@ class IOTest(unittest.TestCase):
for [test, abilities] in tests:
with self.subTest(test):
if test == pipe_writer and not threading_helper.can_start_thread:
- skipTest()
+ self.skipTest("Need threads")
with test() as obj:
do_test(test, obj, abilities)