GH-111801: set a lower recursion limit for test_infintely_many_bases()
in test_isinstance
(#113997)
This commit is contained in:
parent
a47353d587
commit
3c19ee0422
@ -344,7 +344,7 @@ class TestIsInstanceIsSubclass(unittest.TestCase):
|
||||
pass
|
||||
A.__getattr__ = B.__getattr__ = X.__getattr__
|
||||
return (A(), B())
|
||||
with support.infinite_recursion():
|
||||
with support.infinite_recursion(25):
|
||||
self.assertRaises(RecursionError, issubclass, X(), int)
|
||||
|
||||
|
||||
|
@ -0,0 +1,3 @@
|
||||
Lower the recursion limit in ``test_isinstance`` for
|
||||
``test_infinitely_many_bases()``. This prevents a stack overflow on a
|
||||
pydebug build of WASI.
|
Loading…
x
Reference in New Issue
Block a user