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 209890eCopy full SHA for 209890e
Lib/test/test_ast.py
@@ -1248,6 +1248,8 @@ def test_level_as_none(self):
1248
def test_recursion_direct(self):
1249
e = ast.UnaryOp(op=ast.Not(), lineno=0, col_offset=0)
1250
e.operand = e
1251
+ import sys
1252
+ raise ValueError('Limit is', sys.getrecursionlimit())
1253
with self.assertRaises(RecursionError):
1254
with support.infinite_recursion():
1255
compile(ast.Expression(e), "<test>", "eval")
0 commit comments