Skip to content

Commit f484fe7

Browse files
committed
HPy: mark more tests as requiring syncgc
1 parent 8d2f0a9 commit f484fe7

File tree

2 files changed

+3
-0
lines changed

2 files changed

+3
-0
lines changed

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

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -308,6 +308,7 @@ def count_pairs():
308308
gc.collect()
309309
assert count_pairs() == 0
310310

311+
@pytest.mark.syncgc
311312
def test_tp_finalize(self):
312313
# Tests the contract of tp_finalize: what it should see
313314
# if called from within HPyField_Store

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

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -95,6 +95,7 @@ def test_legacy_dealloc(self):
9595
import gc; gc.collect()
9696
assert mod.get_counter() == 1
9797

98+
@pytest.mark.syncgc
9899
def test_legacy_dealloc_and_HPy_tp_traverse(self):
99100
import pytest
100101
mod_src = """
@@ -129,6 +130,7 @@ def test_legacy_dealloc_and_HPy_tp_traverse(self):
129130
mod = self.make_module(mod_src)
130131
assert "legacy tp_dealloc" in str(err.value)
131132

133+
@pytest.mark.syncgc
132134
def test_legacy_dealloc_and_HPy_tp_destroy(self):
133135
import pytest
134136
mod_src = """

0 commit comments

Comments
 (0)