aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/Lib/test/test_json/test_recursion.py
diff options
context:
space:
mode:
authorMark Shannon <mark@hotpy.org>2023-12-22 14:25:25 +0000
committerGitHub <noreply@github.com>2023-12-22 14:25:25 +0000
commit45e09f921be55e23bed19b5db4c95ce7bd7aad6b (patch)
tree8ff185ad0ce752b72c9b18f8766c6d2a035643dd /Lib/test/test_json/test_recursion.py
parent5f665e99e0b8a52415f83c2416eaf28abaacc3ae (diff)
downloadcpython-45e09f921be55e23bed19b5db4c95ce7bd7aad6b.tar.gz
cpython-45e09f921be55e23bed19b5db4c95ce7bd7aad6b.zip
GH-112215: Increase C recursion limit for non debug builds (GH-113397)
Diffstat (limited to 'Lib/test/test_json/test_recursion.py')
-rw-r--r--Lib/test/test_json/test_recursion.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/Lib/test/test_json/test_recursion.py b/Lib/test/test_json/test_recursion.py
index 9919d7fbe54..164ff2013eb 100644
--- a/Lib/test/test_json/test_recursion.py
+++ b/Lib/test/test_json/test_recursion.py
@@ -85,10 +85,10 @@ class TestRecursion:
for x in range(100000):
l, d = [l], {'k':d}
with self.assertRaises(RecursionError):
- with support.infinite_recursion():
+ with support.infinite_recursion(5000):
self.dumps(l)
with self.assertRaises(RecursionError):
- with support.infinite_recursion():
+ with support.infinite_recursion(5000):
self.dumps(d)
def test_endless_recursion(self):
@@ -99,7 +99,7 @@ class TestRecursion:
return [o]
with self.assertRaises(RecursionError):
- with support.infinite_recursion():
+ with support.infinite_recursion(1000):
EndlessJSONEncoder(check_circular=False).encode(5j)