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.
test_recursion_direct
1 parent 2d52406 commit 7c4d9adCopy full SHA for 7c4d9ad
Lib/test/test_ast.py
@@ -1249,7 +1249,7 @@ def test_recursion_direct(self):
1249
e = ast.UnaryOp(op=ast.Not(), lineno=0, col_offset=0)
1250
e.operand = e
1251
with self.assertRaises(RecursionError):
1252
- with support.infinite_recursion():
+ with support.infinite_recursion(max_depth=30):
1253
compile(ast.Expression(e), "<test>", "eval")
1254
1255
def test_recursion_indirect(self):
@@ -1258,7 +1258,7 @@ def test_recursion_indirect(self):
1258
e.operand = f
1259
f.operand = e
1260
1261
1262
1263
1264
0 commit comments