mirror of
https://github.com/python/cpython.git
synced 2025-08-04 00:48:58 +00:00
GH-112215: Increase C recursion limit for non debug builds (GH-113397)
This commit is contained in:
parent
5f665e99e0
commit
45e09f921b
7 changed files with 33 additions and 21 deletions
|
@ -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)
|
||||
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue