mirror of
https://github.com/python/cpython.git
synced 2025-08-04 08:59:19 +00:00
Issue #19235: Add new RecursionError exception. Patch by Georg Brandl.
This commit is contained in:
parent
27be130ec7
commit
f488fb422a
31 changed files with 101 additions and 69 deletions
|
@ -56,7 +56,7 @@ class CommonTest(seq_tests.CommonTest):
|
|||
l0 = []
|
||||
for i in range(sys.getrecursionlimit() + 100):
|
||||
l0 = [l0]
|
||||
self.assertRaises(RuntimeError, repr, l0)
|
||||
self.assertRaises(RecursionError, repr, l0)
|
||||
|
||||
def test_print(self):
|
||||
d = self.type2test(range(200))
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue