Skip to content

Commit dd90515

Browse files
committed
patch test_isinstance
1 parent acca386 commit dd90515

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

Lib/test/test_isinstance.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -352,7 +352,9 @@ def blowstack(fxn, arg, compare_to):
352352
# Make sure that calling isinstance with a deeply nested tuple for its
353353
# argument will raise RecursionError eventually.
354354
tuple_arg = (compare_to,)
355-
for cnt in range(support.exceeds_recursion_limit()):
355+
# XXX: RUSTPYTHON; support.exceeds_recursion_limit() is not available yet.
356+
import sys
357+
for cnt in range(sys.getrecursionlimit()+5):
356358
tuple_arg = (tuple_arg,)
357359
fxn(arg, tuple_arg)
358360

0 commit comments

Comments
 (0)