Skip to content

Commit 88dc3d6

Browse files
committed
Fix: definition and usage of fixture skip_nfi
1 parent 63fd9a6 commit 88dc3d6

File tree

3 files changed

+4
-2
lines changed

3 files changed

+4
-2
lines changed

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ def compiler(request, tmpdir, hpy_devel, hpy_abi, ExtensionTemplate):
5959
ExtensionTemplate=ExtensionTemplate)
6060

6161
@pytest.fixture()
62-
def skip_nfi(self, hpy_abi):
62+
def skip_nfi(hpy_abi):
6363
# skip all tests in this class for NFI mode
6464
if hpy_abi == 'nfi':
6565
pytest.skip()

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

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,11 +23,12 @@
2323

2424
""" HPyType tests on legacy types. """
2525

26+
import pytest
27+
2628
from .support import HPyTest
2729
from .test_hpytype import PointTemplate, TestType as _TestType
2830

2931

30-
@pytest.mark.usefixtures('skip_nfi')
3132
class LegacyPointTemplate(PointTemplate):
3233
"""
3334
Override PointTemplate to instead define a legacy point type that

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

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

2424
""" HPyType slot tests on legacy types. """
25+
import pytest
2526

2627
from .support import HPyTest
2728
from .test_hpytype_legacy import LegacyPointTemplate

0 commit comments

Comments
 (0)