mirror of
https://github.com/python/cpython.git
synced 2026-01-08 00:12:42 +00:00
[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 e3539e99e3)
Co-authored-by: Zanie Blue <contact@zanie.dev>
Co-authored-by: Victor Stinner <vstinner@python.org>
This commit is contained in:
parent
d2f5a0e72e
commit
9bb27cd105
1 changed files with 2 additions and 2 deletions
|
|
@ -71,7 +71,7 @@ def default(self, o):
|
|||
@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 @@ def test_highly_nested_objects_decoding(self):
|
|||
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):
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue