File tree Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -1129,7 +1129,7 @@ def test_ast_recursion_limit(self):
1129
1129
success_depth = 1200
1130
1130
if _testinternalcapi is not None :
1131
1131
remaining = _testinternalcapi .get_c_recursion_remaining ()
1132
- success_depth = min (remaining , remaining )
1132
+ success_depth = min (success_depth , remaining )
1133
1133
1134
1134
def check_limit (prefix , repeated ):
1135
1135
expect_ok = prefix + repeated * success_depth
Original file line number Diff line number Diff line change @@ -3040,7 +3040,7 @@ def test_trace_lots_of_globals(self):
3040
3040
count = 1000
3041
3041
if _testinternalcapi is not None :
3042
3042
remaining = _testinternalcapi .get_c_recursion_remaining ()
3043
- count = min (remaining , count )
3043
+ count = min (count , remaining )
3044
3044
3045
3045
code = """if 1:
3046
3046
def f():
You can’t perform that action at this time.
0 commit comments