Skip to content

Commit 6c4fb93

Browse files
committed
Reduce depth required to succeed in compiler test.
1 parent a00b59e commit 6c4fb93

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

Lib/test/test_ast.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -817,7 +817,7 @@ def next(self):
817817
@support.cpython_only
818818
def test_ast_recursion_limit(self):
819819
crash_depth = 100_000
820-
success_depth = 5_000
820+
success_depth = 3_000
821821

822822
def check_limit(prefix, repeated):
823823
expect_ok = prefix + repeated * success_depth

Lib/test/test_compile.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -547,7 +547,7 @@ def test_yet_more_evil_still_undecodable(self):
547547
@unittest.skipIf(support.is_wasi, "exhausts limited stack on WASI")
548548
def test_compiler_recursion_limit(self):
549549
crash_depth = 100_000
550-
success_depth = 5_000
550+
success_depth = 3_000
551551

552552
def check_limit(prefix, repeated, mode="single"):
553553
expect_ok = prefix + repeated * success_depth

0 commit comments

Comments
 (0)