mirror of
https://github.com/python/cpython.git
synced 2025-11-01 02:38:53 +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
|
|
@ -371,6 +371,7 @@ class TestCopy(unittest.TestCase):
|
|||
self.assertIsNot(x, y)
|
||||
self.assertIsNot(x[0], y[0])
|
||||
|
||||
@support.skip_emscripten_stack_overflow()
|
||||
def test_deepcopy_reflexive_list(self):
|
||||
x = []
|
||||
x.append(x)
|
||||
|
|
@ -398,6 +399,7 @@ class TestCopy(unittest.TestCase):
|
|||
y = copy.deepcopy(x)
|
||||
self.assertIs(x, y)
|
||||
|
||||
@support.skip_emscripten_stack_overflow()
|
||||
def test_deepcopy_reflexive_tuple(self):
|
||||
x = ([],)
|
||||
x[0].append(x)
|
||||
|
|
@ -415,6 +417,7 @@ class TestCopy(unittest.TestCase):
|
|||
self.assertIsNot(x, y)
|
||||
self.assertIsNot(x["foo"], y["foo"])
|
||||
|
||||
@support.skip_emscripten_stack_overflow()
|
||||
def test_deepcopy_reflexive_dict(self):
|
||||
x = {}
|
||||
x['foo'] = x
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue