Skip to content

Commit e3539e9

Browse files
zaniebvstinner
andauthored
gh-140125: Increase object recursion depth for test_json from 200k to 500k (#142226)
Co-authored-by: Victor Stinner <[email protected]>
1 parent 0b8c348 commit e3539e9

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Lib/test/test_json/test_recursion.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,7 @@ def default(self, o):
7171
@support.skip_emscripten_stack_overflow()
7272
@support.skip_wasi_stack_overflow()
7373
def test_highly_nested_objects_decoding(self):
74-
very_deep = 200000
74+
very_deep = 500_000
7575
# test that loading highly-nested objects doesn't segfault when C
7676
# accelerations are used. See #12017
7777
with self.assertRaises(RecursionError):
@@ -90,7 +90,7 @@ def test_highly_nested_objects_decoding(self):
9090
def test_highly_nested_objects_encoding(self):
9191
# See #12051
9292
l, d = [], {}
93-
for x in range(200_000):
93+
for x in range(500_000):
9494
l, d = [l], {'k':d}
9595
with self.assertRaises(RecursionError):
9696
with support.infinite_recursion(5000):

0 commit comments

Comments
 (0)