Skip to content

Commit 8e76210

Browse files
committed
Skip unsupported test_delattr[cpython]
1 parent 18a1647 commit 8e76210

File tree

1 file changed

+6
-2
lines changed
  • graalpython/com.oracle.graal.python.hpy.test/src/hpytest

1 file changed

+6
-2
lines changed

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

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -319,8 +319,10 @@ def foo(self, value):
319319
mod.f(b)
320320
assert b.foo is True
321321

322-
def test_delattr(self):
322+
def test_delattr(self, hpy_abi):
323323
import pytest
324+
if hpy_abi == "cpython":
325+
pytest.skip("delattr not supported on GraalPy")
324326
mod = self.make_module("""
325327
HPyDef_METH(del_foo, "del_foo", HPyFunc_O)
326328
static HPy del_foo_impl(HPyContext *ctx, HPy self, HPy arg)
@@ -401,8 +403,10 @@ def set_foo(obj):
401403
with pytest.raises(AttributeError):
402404
c.foo
403405

404-
def test_delattr_s(self):
406+
def test_delattr_s(self, hpy_abi):
405407
import pytest
408+
if hpy_abi == "cpython":
409+
pytest.skip("delattr not supported on GraalPy")
406410
mod = self.make_module("""
407411
HPyDef_METH(del_foo, "del_foo", HPyFunc_O)
408412
static HPy del_foo_impl(HPyContext *ctx, HPy self, HPy arg)

0 commit comments

Comments
 (0)