mirror of
https://github.com/python/cpython.git
synced 2026-01-04 14:32:21 +00:00
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
2 changed files with 4 additions and 1 deletions
|
|
@ -344,7 +344,7 @@ class B:
|
|||
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…
Add table
Add a link
Reference in a new issue