Skip to content

Commit 209890e

Browse files
committed
Fix test_recursion_direct failure on Windows buildbot
1 parent 2d52406 commit 209890e

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

Lib/test/test_ast.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1248,6 +1248,8 @@ def test_level_as_none(self):
12481248
def test_recursion_direct(self):
12491249
e = ast.UnaryOp(op=ast.Not(), lineno=0, col_offset=0)
12501250
e.operand = e
1251+
import sys
1252+
raise ValueError('Limit is', sys.getrecursionlimit())
12511253
with self.assertRaises(RecursionError):
12521254
with support.infinite_recursion():
12531255
compile(ast.Expression(e), "<test>", "eval")

0 commit comments

Comments
 (0)