mirror of
https://github.com/python/cpython.git
synced 2025-08-04 00:48:58 +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 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)
|
||||
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue