10000 Tweak depths · python/cpython@9da904d · GitHub
[go: up one dir, main page]

Skip to content

Commit 9da904d

Browse files
committed
Tweak depths
1 parent afac1e6 commit 9da904d

File tree

3 files changed

+4
-5
lines changed

3 files changed

+4
-5
lines changed

Lib/test/support/__init__.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -56,8 +56,7 @@
5656
"run_with_tz", "PGO", "missing_compiler_executable",
5757
"ALWAYS_EQ", "NEVER_EQ", "LARGEST", "SMALLEST",
5858
"LOOPBACK_TIMEOUT", "INTERNET_TIMEOUT", "SHORT_TIMEOUT", "LONG_TIMEOUT",
59-
"Py_DEBUG"
60-
"skip_on_s390x",
59+
"Py_DEBUG", "skip_on_s390x",
6160
"requires_jit_enabled",
6261
"requires_jit_disabled",
6362
"force_not_colorized",

Lib/test/test_ast/test_ast.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -747,7 +747,7 @@ def next(self):
747747
@support.cpython_only
748748
@skip_emscripten_stack_overflow()
749749
def test_ast_recursion_limit(self):
750-
fail_depth = 20_000
750+
fail_depth = 100_000
751751
crash_depth = 200_000
752752
success_depth = 200
753753
if _testinternalcapi is not None:

Lib/test/test_compile.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -714,8 +714,8 @@ def test_yet_more_evil_still_undecodable(self):
714714
def test_compiler_recursion_limit(self):
715715
# Compiler frames are small
716716
limit = 100
717-
fail_depth = limit * 50
718-
crash_depth = limit * 200
717+
fail_depth = limit * 500
718+
crash_depth = limit * 2000
719719
success_depth = limit
720720

721721
def check_limit(prefix, repeated, mode="single"):

0 commit comments

Comments
 (0)
0