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:
Hood Chatham 2024-12-05 01:26:25 +01:00 committed by GitHub
parent 2f1cee8477
commit 43634fc1fc
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
21 changed files with 46 additions and 8 deletions

View file

@ -6,7 +6,7 @@ import sys
from functools import cmp_to_key
from test import seq_tests
from test.support import ALWAYS_EQ, NEVER_EQ, get_c_recursion_limit
from test.support import ALWAYS_EQ, NEVER_EQ, get_c_recursion_limit, skip_emscripten_stack_overflow
class CommonTest(seq_tests.CommonTest):
@ -59,6 +59,7 @@ class CommonTest(seq_tests.CommonTest):
self.assertEqual(str(a2), "[0, 1, 2, [...], 3]")
self.assertEqual(repr(a2), "[0, 1, 2, [...], 3]")
@skip_emscripten_stack_overflow()
def test_repr_deep(self):
a = self.type2test([])
for i in range(get_c_recursion_limit() + 1):