We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6bed916 commit 8d0f6f0Copy full SHA for 8d0f6f0
1 file changed
Lib/test/test_call.py
@@ -1074,6 +1074,14 @@ def c_py_recurse(m):
1074
with self.assertRaises(RecursionError):
1075
c_py_recurse(100_000)
1076
1077
+ def test_recursion_with_kwargs(self):
1078
+ # GH-137883: The interpreter forgot to check the recursion limit when
1079
+ # calling with keywords.
1080
+ def recurse_kw(a=0):
1081
+ recurse_kw(a=0)
1082
+ with self.assertRaises(RecursionError):
1083
+ recurse_kw()
1084
+
1085
1086
class TestFunctionWithManyArgs(unittest.TestCase):
1087
def test_function_with_many_args(self):
0 commit comments