Skip to content

Commit 4b05bb0

Browse files
committed
Disable compiler tests that exceed Bytecode DSL size limits
1 parent 43996ef commit 4b05bb0

File tree

2 files changed

+5
-2
lines changed

2 files changed

+5
-2
lines changed

graalpython/lib-python/3/test/support/__init__.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -1062,7 +1062,7 @@ def bytecode_dsl_excluded(test):
10621062
"""
10631063
try:
10641064
if sys.implementation.name == 'graalpy' and __graalpython__.is_bytecode_dsl_interpreter:
1065-
return unittest.skip("implementation detail not available on the Bytecode DSL interpreter")
1065+
return unittest.skip("Not supported by the Bytecode DSL interpreter")
10661066
except NameError:
10671067
pass
10681068
return test

graalpython/lib-python/3/test/test_compile.py

+4-1
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
import types
1010
import textwrap
1111
from test import support
12-
from test.support import script_helper, requires_debug_ranges, impl_detail
12+
from test.support import script_helper, requires_debug_ranges, impl_detail, bytecode_dsl_excluded
1313
from test.support.os_helper import FakePath
1414

1515

@@ -108,6 +108,7 @@ def __getitem__(self, key):
108108
exec('z = a', g, d)
109109
self.assertEqual(d['z'], 12)
110110

111+
@bytecode_dsl_excluded
111112
def test_extended_arg(self):
112113
# default: 1000 * 2.5 = 2500 repetitions
113114
repeat = int(sys.getrecursionlimit() * 2.5)
@@ -770,6 +771,7 @@ def test_path_like_objects(self):
770771
compile("42", FakePath("test_compile_pathlike"), "single")
771772

772773
@support.requires_resource('cpu')
774+
@bytecode_dsl_excluded
773775
def test_stack_overflow(self):
774776
# bpo-31113: Stack overflow when compile a long sequence of
775777
# complex statements.
@@ -1019,6 +1021,7 @@ async def test(aseq):
10191021
code_lines = self.get_code_lines(test.__code__)
10201022
self.assertEqual(expected_lines, code_lines)
10211023

1024+
@bytecode_dsl_excluded
10221025
def test_big_dict_literal(self):
10231026
# The compiler has a flushing point in "compiler_dict" that calls compiles
10241027
# a portion of the dictionary literal when the loop that iterates over the items

0 commit comments

Comments
 (0)