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 097cc42 commit 5e343d7Copy full SHA for 5e343d7
Lib/test/test_ast.py
@@ -1129,7 +1129,7 @@ def test_ast_recursion_limit(self):
1129
success_depth = 1200
1130
if _testinternalcapi is not None:
1131
remaining = _testinternalcapi.get_c_recursion_remaining()
1132
- success_depth = min(remaining, remaining)
+ success_depth = min(success_depth, remaining)
1133
1134
def check_limit(prefix, repeated):
1135
expect_ok = prefix + repeated * success_depth
Lib/test/test_sys_settrace.py
@@ -3040,7 +3040,7 @@ def test_trace_lots_of_globals(self):
3040
count = 1000
3041
3042
3043
- count = min(remaining, count)
+ count = min(count, remaining)
3044
3045
code = """if 1:
3046
def f():
0 commit comments