Skip to content

Commit e7ad1a6

Browse files
committed
Skip debug mode ABI if not supported
1 parent 059c51d commit e7ad1a6

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

graalpython/com.oracle.graal.python.hpy.test/src/hpytest/debug/test_misc.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,8 @@
2424
import pytest
2525
from hpytest.support import SUPPORTS_SYS_EXECUTABLE, SUPPORTS_MEM_PROTECTION, HPyTest
2626

27+
pytestmark = pytest.mark.skipif(not HPyTest.supports_debug_mode(), reason="debug mode not supported")
28+
2729
@pytest.fixture
2830
def hpy_abi():
2931
return "debug"

graalpython/com.oracle.graal.python.hpy.test/src/hpytest/test_importing.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@
2525
from .support import HPyTest
2626
from hpy.devel.abitag import get_hpy_ext_suffix
2727

28-
@pytest.fixture(params=['cpython', 'universal', 'hybrid', 'debug'])
28+
@pytest.fixture(params=['cpython', 'universal', 'hybrid'] + (['debug'] if HPyTest.supports_debug_mode() else []))
2929
def hpy_abi(request):
3030
abi = request.param
3131
yield abi

0 commit comments

Comments
 (0)