Skip to content

Commit 8933b26

Browse files
committed
Increase test limits even more
1 parent 7260a9b commit 8933b26

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

Lib/test/test_ast/test_ast.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -755,7 +755,7 @@ def next(self):
755755
@skip_wasi_stack_overflow()
756756
@skip_emscripten_stack_overflow()
757757
def test_ast_recursion_limit(self):
758-
crash_depth = 300_000
758+
crash_depth = 500_000
759759
success_depth = 200
760760
if _testinternalcapi is not None:
761761
remaining = _testinternalcapi.get_c_recursion_remaining()

Lib/test/test_json/test_recursion.py

+3-3
Original file line numberDiff line numberDiff line change
@@ -74,13 +74,13 @@ def test_highly_nested_objects_decoding(self):
7474
# accelerations are used. See #12017
7575
with self.assertRaises(RecursionError):
7676
with support.infinite_recursion():
77-
self.loads('{"a":' * 100000 + '1' + '}' * 100000)
77+
self.loads('{"a":' * 200000 + '1' + '}' * 200000)
7878
with self.assertRaises(RecursionError):
7979
with support.infinite_recursion():
80-
self.loads('{"a":' * 100000 + '[1]' + '}' * 100000)
80+
self.loads('{"a":' * 200000 + '[1]' + '}' * 200000)
8181
with self.assertRaises(RecursionError):
8282
with support.infinite_recursion():
83-
self.loads('[' * 100000 + '1' + ']' * 100000)
83+
self.loads('[' * 200000 + '1' + ']' * 200000)
8484

8585
@support.skip_wasi_stack_overflow()
8686
@support.skip_emscripten_stack_overflow()

0 commit comments

Comments
 (0)