Skip to content

Commit 7577c2b

Browse files
committed
Disable some debug mode tests that cannot work on GraalPy
1 parent 0ededd5 commit 7577c2b

File tree

3 files changed

+8
-1
lines changed

3 files changed

+8
-1
lines changed

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

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,9 @@
2323

2424
import pytest
2525
from hpy.debug.leakdetector import LeakDetector
26+
from hpytest.support import HPyTest
27+
28+
pytestmark = pytest.mark.skipif(not HPyTest.supports_debug_mode(), reason="debug mode not supported")
2629

2730
@pytest.fixture
2831
def hpy_abi():

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

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,9 @@
2222
# SOFTWARE.
2323

2424
import pytest
25+
from hpytest.support import HPyTest
26+
27+
pytestmark = pytest.mark.skipif(not HPyTest.supports_debug_mode(), reason="debug mode not supported")
2528

2629
@pytest.fixture
2730
def hpy_abi():

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

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@
2222
# SOFTWARE.
2323

2424
import pytest
25-
from hpytest.support import SUPPORTS_SYS_EXECUTABLE, SUPPORTS_MEM_PROTECTION
25+
from hpytest.support import SUPPORTS_SYS_EXECUTABLE, SUPPORTS_MEM_PROTECTION, HPyTest
2626

2727
@pytest.fixture
2828
def hpy_abi():
@@ -86,6 +86,7 @@ def test_typecheck(compiler, python_subprocess):
8686
@pytest.mark.skipif(not SUPPORTS_MEM_PROTECTION, reason=
8787
"Could be implemented by checking the contents on close.")
8888
@pytest.mark.skipif(not SUPPORTS_SYS_EXECUTABLE, reason="needs subprocess")
89+
@pytest.mark.skipif(not HPyTest.supports_debug_mode(), reason="debug mode not supported")
8990
def test_type_getname(compiler, python_subprocess):
9091
mod = compiler.compile_module("""
9192
#define MODE_READ_ONLY 0

0 commit comments

Comments
 (0)