From: Miss Islington (bot) <31488909+miss-islington@users.noreply.github.com> Date: Mon, 8 Dec 2025 13:31:56 +0000 (+0100) Subject: [3.14] gh-140125: Increase object recursion depth for `test_json` from 200k to 500k... X-Git-Tag: v3.14.3~288 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=9bb27cd1051e0e1ee2022fcaedb828643a84a30e;p=thirdparty%2FPython%2Fcpython.git [3.14] gh-140125: Increase object recursion depth for `test_json` from 200k to 500k (GH-142226) (#142416) gh-140125: Increase object recursion depth for `test_json` from 200k to 500k (GH-142226) (cherry picked from commit e3539e99e3642ceea2330b3f78a6e9fa8ac3da64) Co-authored-by: Zanie Blue Co-authored-by: Victor Stinner --- diff --git a/Lib/test/test_json/test_recursion.py b/Lib/test/test_json/test_recursion.py index 5d7b56ff9ad2..40a0baa53f0c 100644 --- a/Lib/test/test_json/test_recursion.py +++ b/Lib/test/test_json/test_recursion.py @@ -71,7 +71,7 @@ class TestRecursion: @support.skip_emscripten_stack_overflow() @support.skip_wasi_stack_overflow() def test_highly_nested_objects_decoding(self): - very_deep = 200000 + very_deep = 500_000 # test that loading highly-nested objects doesn't segfault when C # accelerations are used. See #12017 with self.assertRaises(RecursionError): @@ -90,7 +90,7 @@ class TestRecursion: def test_highly_nested_objects_encoding(self): # See #12051 l, d = [], {} - for x in range(200_000): + for x in range(500_000): l, d = [l], {'k':d} with self.assertRaises(RecursionError): with support.infinite_recursion(5000):