Skip to content

Commit 2f8a128

Browse files
committed
TST: disable tests compiling Cython code on Python 3.12
Cython generated code does not compile with Python 3.12. This cab be revisited once the next beta version of Cython 3.0 is released. Fixes #337.
1 parent 4552720 commit 2f8a128

File tree

2 files changed

+2
-0
lines changed

2 files changed

+2
-0
lines changed

tests/test_editable.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -58,6 +58,7 @@ def test_collect(package_complex):
5858
assert tree['complex']['more']['__init__.py'] == os.path.join(root, 'complex', 'more', '__init__.py')
5959

6060

61+
@pytest.mark.skipif(sys.version_info >= (3, 12), reason='Cython generated code does not compile on Python 3.12')
6162
def test_mesonpy_meta_finder(package_complex, tmp_build_path):
6263
# build a package in a temporary directory
6364
mesonpy.Project(package_complex, tmp_build_path)

tests/test_wheel.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -51,6 +51,7 @@ def wheel_filename(artifact):
5151
return artifact.filename.split(os.sep)[-1]
5252

5353

54+
@pytest.mark.skipif(sys.version_info >= (3, 12), reason='Cython generated code does not compile on Python 3.12')
5455
def test_scipy_like(wheel_scipy_like):
5556
# This test is meant to exercise features commonly needed by a regular
5657
# Python package for scientific computing or data science:

0 commit comments

Comments
 (0)