Skip to content

Commit

Permalink
Limit infinite recursion in test_call
Browse files Browse the repository at this point in the history
  • Loading branch information
gvanrossum committed Nov 1, 2023
1 parent b9516a1 commit 33c3fae
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions Lib/test/test_call.py
Original file line number Diff line number Diff line change
Expand Up @@ -1017,8 +1017,10 @@ def c_py_recurse(m):
with self.assertRaises(RecursionError):
recurse(101_000)
c_recurse(100)
with self.assertRaises(RecursionError):
c_recurse(90_000)
if sys.platform != "win32":
# This crashes CI on Windows
with self.assertRaises(RecursionError):
c_recurse(90_000)
c_py_recurse(90)
with self.assertRaises(RecursionError):
c_py_recurse(100_000)
Expand Down

0 comments on commit 33c3fae

Please sign in to comment.