|
18 | 18 |
|
19 | 19 | from mesonpy import _editable |
20 | 20 |
|
21 | | -from .test_wheel import EXT_SUFFIX, NOGIL_BUILD |
| 21 | +from .test_wheel import EXT_SUFFIX |
22 | 22 |
|
23 | 23 |
|
24 | 24 | def find_cython_version(): |
@@ -75,7 +75,7 @@ def test_collect(package_complex): |
75 | 75 | assert tree['complex']['more']['__init__.py'] == os.path.join(root, 'complex', 'more', '__init__.py') |
76 | 76 |
|
77 | 77 |
|
78 | | -@pytest.mark.skipif(NOGIL_BUILD and CYTHON_VERSION < (3, 1, 0), |
| 78 | +@pytest.mark.skipif(mesonpy._is_free_threaded() and CYTHON_VERSION < (3, 1, 0), |
79 | 79 | reason='Cython version too old, no free-threaded CPython support') |
80 | 80 | def test_mesonpy_meta_finder(package_complex, tmp_path): |
81 | 81 | # build a package in a temporary directory |
@@ -210,7 +210,7 @@ def test_editble_reentrant(venv, editable_imports_itself_during_build): |
210 | 210 | path.write_text(code) |
211 | 211 |
|
212 | 212 |
|
213 | | -@pytest.mark.skipif(NOGIL_BUILD and CYTHON_VERSION < (3, 1, 0), |
| 213 | +@pytest.mark.skipif(mesonpy._is_free_threaded() and CYTHON_VERSION < (3, 1, 0), |
214 | 214 | reason='Cython version too old, no free-threaded CPython support') |
215 | 215 | def test_editable_pkgutils_walk_packages(package_complex, tmp_path): |
216 | 216 | # build a package in a temporary directory |
@@ -296,7 +296,7 @@ def test_editable_rebuild(package_purelib_and_platlib, tmp_path, verbose, args): |
296 | 296 | sys.modules.pop('pure', None) |
297 | 297 |
|
298 | 298 |
|
299 | | -@pytest.mark.skipif(NOGIL_BUILD and CYTHON_VERSION < (3, 1, 0), |
| 299 | +@pytest.mark.skipif(mesonpy._is_free_threaded() and CYTHON_VERSION < (3, 1, 0), |
300 | 300 | reason='Cython version too old, no free-threaded CPython support') |
301 | 301 | def test_editable_verbose(venv, package_complex, editable_complex, monkeypatch): |
302 | 302 | monkeypatch.setenv('MESONPY_EDITABLE_VERBOSE', '1') |
|
0 commit comments