Skip to content

Commit

Permalink
TST: disable tests compiling Cython modules on free-threaded CPython
Browse files Browse the repository at this point in the history
  • Loading branch information
dnicolodi committed Aug 26, 2024
1 parent 03a45ef commit 04e0066
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions tests/test_editable.py
Original file line number Diff line number Diff line change
Expand Up @@ -75,6 +75,8 @@ def test_collect(package_complex):
assert tree['complex']['more']['__init__.py'] == os.path.join(root, 'complex', 'more', '__init__.py')


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


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

0 comments on commit 04e0066

Please sign in to comment.