Skip to content

Commit 8f246dd

Browse files
committed
Disable a few still unsupported HPy tests
1 parent 4b8eb4a commit 8f246dd

File tree

4 files changed

+15
-0
lines changed

4 files changed

+15
-0
lines changed

graalpython/lib-graalpython/modules/hpy/test/test_basic.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -140,6 +140,7 @@ def test_close(self):
140140
""")
141141
assert mod.f(41.5) == 42.5
142142

143+
# TODO: enable test once supported
143144
@pytest.mark.xfail
144145
def test_bool(self):
145146
mod = self.make_module("""
@@ -350,6 +351,7 @@ def test_repr_str_ascii_bytes(self):
350351
assert mod.f3("\u1234") == "'\\u1234'"
351352
assert mod.f4(bytearray(b"foo")) == b"foo"
352353

354+
@pytest.mark.xfail
353355
def test_is_true(self):
354356
mod = self.make_module("""
355357
HPyDef_METH(f, "f", f_impl, HPyFunc_O)

graalpython/lib-graalpython/modules/hpy/test/test_cpy_compat.py

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

2424
from .support import HPyTest
25+
import pytest
2526

2627

2728
class TestCPythonCompatibility(HPyTest):
@@ -226,6 +227,8 @@ def test_legacy_methods(self):
226227
assert mod.h(4, 5, 6) == 456
227228
assert mod.k(c=6, b=5, a=4) == 456
228229

230+
# TODO: enable test once supported
231+
@pytest.mark.xfail
229232
def test_legacy_slots_repr(self):
230233
mod = self.make_module("""
231234
#include <Python.h>
@@ -366,6 +369,8 @@ def test_legacy_slots_members(self):
366369
assert p.x == 123
367370
assert p.y == 456
368371

372+
# TODO: enable test once supported
373+
@pytest.mark.xfail
369374
def test_legacy_slots_getsets(self):
370375
mod = self.make_module("""
371376
#include <Python.h>

graalpython/lib-graalpython/modules/hpy/test/test_hpytype.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@
77
"fake pytest module")
88
"""
99
from .support import HPyTest, DefaultExtensionTemplate
10+
import pytest
1011

1112

1213
class PointTemplate(DefaultExtensionTemplate):
@@ -289,6 +290,8 @@ def test_HPyDef_SET(self):
289290
p.z = 1075
290291
assert p.y == 5
291292

293+
# TODO: enable test once supported
294+
@pytest.mark.xfail
292295
def test_specparam_base(self):
293296
mod = self.make_module("""
294297
static HPyType_Spec Dummy_spec = {
@@ -324,6 +327,8 @@ class Sub(mod.Dummy):
324327
pass
325328
assert isinstance(Sub(), mod.Dummy)
326329

330+
# TODO: enable test once supported
331+
@pytest.mark.xfail
327332
def test_specparam_basestuple(self):
328333
mod = self.make_module("""
329334
static HPyType_Spec Dummy_spec = {

graalpython/lib-graalpython/modules/hpy/test/test_slots.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
from .support import HPyTest, DefaultExtensionTemplate
22
from .test_hpytype import PointTemplate
3+
import pytest
34

45
class TestSlots(HPyTest):
56

@@ -49,6 +50,8 @@ def test_sq_item(self):
4950
assert p[4] == 8
5051
assert p[21] == 42
5152

53+
# TODO: enable test once supported
54+
@pytest.mark.xfail
5255
def test_tp_destroy(self):
5356
import gc
5457
mod = self.make_module("""

0 commit comments

Comments
 (0)