Skip to content

Commit 5e343d7

Browse files
committed
Oops, fix tests
1 parent 097cc42 commit 5e343d7

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

Lib/test/test_ast.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1129,7 +1129,7 @@ def test_ast_recursion_limit(self):
11291129
success_depth = 1200
11301130
if _testinternalcapi is not None:
11311131
remaining = _testinternalcapi.get_c_recursion_remaining()
1132-
success_depth = min(remaining, remaining)
1132+
success_depth = min(success_depth, remaining)
11331133

11341134
def check_limit(prefix, repeated):
11351135
expect_ok = prefix + repeated * success_depth

Lib/test/test_sys_settrace.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3040,7 +3040,7 @@ def test_trace_lots_of_globals(self):
30403040
count = 1000
30413041
if _testinternalcapi is not None:
30423042
remaining = _testinternalcapi.get_c_recursion_remaining()
3043-
count = min(remaining, count)
3043+
count = min(count, remaining)
30443044

30453045
code = """if 1:
30463046
def f():

0 commit comments

Comments
 (0)