Skip to content

Commit 834229c

Browse files
committed
Skip more unsupported tests in cpython ABI mode
1 parent 8e76210 commit 834229c

File tree

2 files changed

+7
-2
lines changed

2 files changed

+7
-2
lines changed

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

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,8 +33,10 @@
3333

3434

3535
class TestHPyStructSequence(HPyTest):
36-
def test_structseq(self):
36+
def test_structseq(self, hpy_abi):
3737
import pytest
38+
if hpy_abi == "cpython":
39+
pytest.skip("structseq not supported on GraalPy")
3840
mod = self.make_module("""
3941
static HPyStructSequence_Field structseq_fields[] = {
4042
{ "field0", "doc0" },

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

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1507,7 +1507,10 @@ def __new__(self):
15071507
with pytest.raises(TypeError):
15081508
mod.create_type("mytest.DummyIntMeta", int)
15091509

1510-
def test_get_name(self):
1510+
def test_get_name(self, hpy_abi):
1511+
import pytest
1512+
if "debug" in hpy_abi:
1513+
pytest.skip("unsupported on GraalPy")
15111514
import array
15121515
mod = self.make_module("""
15131516
static HPyType_Spec Dummy_spec = {

0 commit comments

Comments
 (0)