We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
infinite_recursion
30
1 parent 209890e commit 462a170Copy full SHA for 462a170
Lib/test/test_ast.py
@@ -1251,7 +1251,7 @@ def test_recursion_direct(self):
1251
import sys
1252
raise ValueError('Limit is', sys.getrecursionlimit())
1253
with self.assertRaises(RecursionError):
1254
- with support.infinite_recursion():
+ with support.infinite_recursion(max_depth=30):
1255
compile(ast.Expression(e), "<test>", "eval")
1256
1257
def test_recursion_indirect(self):
@@ -1260,7 +1260,7 @@ def test_recursion_indirect(self):
1260
e.operand = f
1261
f.operand = e
1262
1263
1264
1265
1266
0 commit comments