mirror of
https://github.com/python/cpython.git
synced 2025-09-26 18:29:57 +00:00
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.
This commit is contained in:
parent
3b7888bf3d
commit
91e6a58e2d
5 changed files with 6 additions and 1 deletions
|
@ -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
|
||||
|
|
|
@ -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)
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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):
|
||||
|
|
|
@ -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)
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue