aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/Lib/test/test_json/test_recursion.py
diff options
context:
space:
mode:
authorHood Chatham <roberthoodchatham@gmail.com>2024-12-05 01:26:25 +0100
committerGitHub <noreply@github.com>2024-12-05 08:26:25 +0800
commit43634fc1fcc88b35171aa79258f767ba6477f764 (patch)
tree14a53e287742fef89c8528a616e491eab2d097f5 /Lib/test/test_json/test_recursion.py
parent2f1cee8477e22bfc36a704310e4c0f409357e7e9 (diff)
downloadcpython-43634fc1fcc88b35171aa79258f767ba6477f764.tar.gz
cpython-43634fc1fcc88b35171aa79258f767ba6477f764.zip
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.
Diffstat (limited to 'Lib/test/test_json/test_recursion.py')
-rw-r--r--Lib/test/test_json/test_recursion.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/Lib/test/test_json/test_recursion.py b/Lib/test/test_json/test_recursion.py
index 290207e9c15..663c0643579 100644
--- a/Lib/test/test_json/test_recursion.py
+++ b/Lib/test/test_json/test_recursion.py
@@ -68,6 +68,7 @@ class TestRecursion:
self.fail("didn't raise ValueError on default recursion")
+ @support.skip_emscripten_stack_overflow()
def test_highly_nested_objects_decoding(self):
# test that loading highly-nested objects doesn't segfault when C
# accelerations are used. See #12017
@@ -81,6 +82,7 @@ class TestRecursion:
with support.infinite_recursion():
self.loads('[' * 100000 + '1' + ']' * 100000)
+ @support.skip_emscripten_stack_overflow()
def test_highly_nested_objects_encoding(self):
# See #12051
l, d = [], {}
@@ -93,6 +95,7 @@ class TestRecursion:
with support.infinite_recursion(5000):
self.dumps(d)
+ @support.skip_emscripten_stack_overflow()
def test_endless_recursion(self):
# See #12051
class EndlessJSONEncoder(self.json.JSONEncoder):