File tree Expand file tree Collapse file tree 2 files changed +7
-0
lines changed
graalpython/lib-graalpython/modules/hpy/test Expand file tree Collapse file tree 2 files changed +7
-0
lines changed Original file line number Diff line number Diff line change @@ -45,12 +45,18 @@ def pytest_configure(config):
45
45
config .addinivalue_line (
46
46
"markers" , "syncgc: Mark tests that rely on a synchronous GC."
47
47
)
48
+ config .addinivalue_line (
49
+ "markers" , "tp_traverse: Mark tests that rely tp_traverse being called."
50
+ )
48
51
49
52
50
53
def pytest_runtest_setup (item ):
51
54
if (sys .implementation .name in ["graalpython" , "pypy" ] and
52
55
"syncgc" in [mark .name for mark in item .iter_markers ()]):
53
56
pytest .skip (f"cannot run syncgc test on { sys .implementation .name } " )
57
+ if (sys .implementation .name in ["graalpython" ] and
58
+ "tp_traverse" in [mark .name for mark in item .iter_markers ()]):
59
+ pytest .skip (f"{ sys .implementation .name } does not call tp_traverse" )
54
60
55
61
56
62
@pytest .fixture (scope = 'session' )
Original file line number Diff line number Diff line change @@ -144,6 +144,7 @@ def test_gc_track_no_gc_flag(self):
144
144
p = mod .Pair ("hello" , "world" )
145
145
assert not gc .is_tracked (p )
146
146
147
+ @pytest .mark .tp_traverse
147
148
def test_tp_traverse (self ):
148
149
import sys
149
150
import gc
You can’t perform that action at this time.
0 commit comments