mirror of
https://github.com/python/cpython.git
synced 2025-07-23 03:05:38 +00:00
gh-127146: Emscripten: Skip segfaults in test suite (#127151)
Added skips for tests known to cause problems when running on Emscripten. These mostly relate to the limited stack depth on Emscripten.
This commit is contained in:
parent
2f1cee8477
commit
43634fc1fc
21 changed files with 46 additions and 8 deletions
|
@ -1,7 +1,7 @@
|
|||
import collections.abc
|
||||
import types
|
||||
import unittest
|
||||
from test.support import get_c_recursion_limit
|
||||
from test.support import get_c_recursion_limit, skip_emscripten_stack_overflow
|
||||
|
||||
class TestExceptionGroupTypeHierarchy(unittest.TestCase):
|
||||
def test_exception_group_types(self):
|
||||
|
@ -464,11 +464,13 @@ class DeepRecursionInSplitAndSubgroup(unittest.TestCase):
|
|||
e = ExceptionGroup('eg', [e])
|
||||
return e
|
||||
|
||||
@skip_emscripten_stack_overflow()
|
||||
def test_deep_split(self):
|
||||
e = self.make_deep_eg()
|
||||
with self.assertRaises(RecursionError):
|
||||
e.split(TypeError)
|
||||
|
||||
@skip_emscripten_stack_overflow()
|
||||
def test_deep_subgroup(self):
|
||||
e = self.make_deep_eg()
|
||||
with self.assertRaises(RecursionError):
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue