Skip to content

Commit 57cb67a

Browse files
committed
Make test_PyEnterLeaveRecursiveCall pass on CPython
1 parent bf1671d commit 57cb67a

File tree

1 file changed

+4
-2
lines changed
  • graalpython/com.oracle.graal.python.test/src/tests/cpyext

1 file changed

+4
-2
lines changed

graalpython/com.oracle.graal.python.test/src/tests/cpyext/test_ceval.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -48,10 +48,12 @@ def compile_module(self, name):
4848
super(TestCeval, self).compile_module(name)
4949

5050
test_Py_EnterLeaveRecursiveCall = CPyExtFunction(
51-
lambda args: None if args[0] < 1000 else RecursionError(args[1]),
51+
# We don't know the exact limit on CPython since it uses the counter in
52+
# the interpreter as well.
53+
lambda args: None if args[0] < 800 else RecursionError(args[1]),
5254
lambda: (
5355
(1, ": one"),
54-
(999, ": nine nine nine"),
56+
(500, ": five hundred"),
5557
(10000, ": ten thousand"),
5658
),
5759
code="""

0 commit comments

Comments
 (0)