From 1280f0332d175104e3dcadf89efab5cc5881f41c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Alex=20Gr=C3=B6nholm?= Date: Mon, 11 Mar 2024 17:42:35 +0200 Subject: [PATCH] Skip the test_platform_linux32 test on non-Linux platforms This test was failing on Windows due to the missing Py_DEBUG sysconfig variable. --- tests/test_bdist_wheel.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/tests/test_bdist_wheel.py b/tests/test_bdist_wheel.py index fd246bea..b440b649 100644 --- a/tests/test_bdist_wheel.py +++ b/tests/test_bdist_wheel.py @@ -1,6 +1,7 @@ from __future__ import annotations import os.path +import platform import shutil import stat import struct @@ -409,6 +410,9 @@ def test_data_dir_with_tag_build(monkeypatch, tmp_path): "reported,expected", [("linux-x86_64", "linux_i686"), ("linux-aarch64", "linux_armv7l")], ) +@pytest.mark.skipif( + platform.system() != "Linux", reason="Only makes sense to test on Linux" +) def test_platform_linux32(reported, expected, monkeypatch): monkeypatch.setattr(struct, "calcsize", lambda x: 4) dist = setuptools.Distribution()