mirror of
https://github.com/python/cpython.git
synced 2025-08-04 08:59:19 +00:00
gh-132744: Check recursion limit in CALL_PY_GENERAL (GH-132746)
This commit is contained in:
parent
987e45e632
commit
ddac7ac59a
9 changed files with 220 additions and 170 deletions
|
@ -560,6 +560,13 @@ class TestCallCache(TestBase):
|
|||
with self.assertRaises(TypeError):
|
||||
instantiate()
|
||||
|
||||
def test_recursion_check_for_general_calls(self):
|
||||
def test(default=None):
|
||||
return test()
|
||||
|
||||
with self.assertRaises(RecursionError):
|
||||
test()
|
||||
|
||||
|
||||
def make_deferred_ref_count_obj():
|
||||
"""Create an object that uses deferred reference counting.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue