Skip to content

Commit bfdb33e

Browse files
committed
TST: disable symlinks sdist test on Python 3.15 on Windows
Python 3.15 tarfile module translates POSIX paths to Windows paths when extracting tar archives on Windows, but does not implement the inverse normalization when creating archives. This results in invalid tar archives and breaks this test.
1 parent a7aa41f commit bfdb33e

1 file changed

Lines changed: 5 additions & 0 deletions

File tree

tests/test_sdist.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -222,6 +222,11 @@ def test_reproducible(package_pure, tmp_path):
222222
# containing symbolic links to absolute paths on Python 3.14.
223223
# See https://github.com/mesonbuild/meson/issues/15142
224224
@pytest.mark.skipif(sys.version_info >= (3, 14) and MESON_VERSION < (1, 9, 2), reason='incompatible Python version')
225+
# Python 3.15 tarfile module translates POSIX paths to Windows paths
226+
# when extracting tar archives on Windows, but does not implement the
227+
# inverse when creating archives. This results in invalid tar archives
228+
# and breaks this test. See https://github.com/python/cpython/pull/151671
229+
@pytest.mark.xfail(sys.version_info >= (3, 15) and sys.platform == 'win32', reason='Python 3.15 tarfile module bug')
225230
@pytest.mark.filterwarnings('ignore:symbolic link')
226231
def test_symlinks(tmp_path, sdist_symlinks):
227232
with tarfile.open(sdist_symlinks, 'r:gz') as sdist:

0 commit comments

Comments
 (0)