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

@ -1,7 +1,7 @@
# tests common to dict and UserDict
import unittest
import collections
from test.support import get_c_recursion_limit
from test.support import get_c_recursion_limit, skip_emscripten_stack_overflow
class BasicTestMappingProtocol(unittest.TestCase):
@ -622,6 +622,7 @@ class TestHashMappingProtocol(TestMappingProtocol):
d = self._full_mapping({1: BadRepr()})
self.assertRaises(Exc, repr, d)
@skip_emscripten_stack_overflow()
def test_repr_deep(self):
d = self._empty_mapping()
for i in range(get_c_recursion_limit() + 1):