Skip to content

Commit ab2bb6d

Browse files
dnicolodirgommers
authored andcommitted
TST: enable sdist test on Python 3.14 with sufficiently recent Meson
1 parent 58e3e95 commit ab2bb6d

File tree

1 file changed

+6
-4
lines changed

1 file changed

+6
-4
lines changed

tests/test_sdist.py

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313

1414
import mesonpy
1515

16-
from .conftest import in_git_repo_context, metadata
16+
from .conftest import MESON_VERSION, in_git_repo_context, metadata
1717

1818

1919
def test_meson_build_metadata(sdist_library):
@@ -217,9 +217,11 @@ def test_reproducible(package_pure, tmp_path):
217217
assert sdist_path_a == sdist_path_b
218218
assert tmp_path.joinpath('a', sdist_path_a).read_bytes() == tmp_path.joinpath('b', sdist_path_b).read_bytes()
219219

220-
# ``meson dist`` does not handle tarballs containing symbolic links to absolute
221-
# paths on Python 3.14, see https://github.com/mesonbuild/meson/issues/15142
222-
@pytest.mark.skipif(sys.version_info >= (3, 14), reason='incompatible Python version')
220+
221+
# ``meson dist`` before Meson 1.9.2 does not handle tarballs
222+
# containing symbolic links to absolute paths on Python 3.14.
223+
# See https://github.com/mesonbuild/meson/issues/15142
224+
@pytest.mark.skipif(sys.version_info >= (3, 14) and MESON_VERSION < (1, 9, 2), reason='incompatible Python version')
223225
@pytest.mark.filterwarnings('ignore:symbolic link')
224226
def test_symlinks(tmp_path, sdist_symlinks):
225227
with tarfile.open(sdist_symlinks, 'r:gz') as sdist:

0 commit comments

Comments
 (0)