Skip to content

Commit 04e0066

Browse files
committed
TST: disable tests compiling Cython modules on free-threaded CPython
1 parent 03a45ef commit 04e0066

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

tests/test_editable.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -75,6 +75,8 @@ def test_collect(package_complex):
7575
assert tree['complex']['more']['__init__.py'] == os.path.join(root, 'complex', 'more', '__init__.py')
7676

7777

78+
@pytest.mark.skipif(NOGIL_BUILD and CYTHON_VERSION < (3, 1, 0),
79+
reason='Cython version too old, no free-threaded CPython support')
7880
def test_mesonpy_meta_finder(package_complex, tmp_path):
7981
# build a package in a temporary directory
8082
project = mesonpy.Project(package_complex, tmp_path)
@@ -208,6 +210,8 @@ def test_editble_reentrant(venv, editable_imports_itself_during_build):
208210
path.write_text(code)
209211

210212

213+
@pytest.mark.skipif(NOGIL_BUILD and CYTHON_VERSION < (3, 1, 0),
214+
reason='Cython version too old, no free-threaded CPython support')
211215
def test_editable_pkgutils_walk_packages(package_complex, tmp_path):
212216
# build a package in a temporary directory
213217
project = mesonpy.Project(package_complex, tmp_path)

0 commit comments

Comments
 (0)