Skip to content

Commit 1280f03

Browse files
committed
Skip the test_platform_linux32 test on non-Linux platforms
This test was failing on Windows due to the missing Py_DEBUG sysconfig variable.
1 parent 0b4b259 commit 1280f03

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

tests/test_bdist_wheel.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
from __future__ import annotations
22

33
import os.path
4+
import platform
45
import shutil
56
import stat
67
import struct
@@ -409,6 +410,9 @@ def test_data_dir_with_tag_build(monkeypatch, tmp_path):
409410
"reported,expected",
410411
[("linux-x86_64", "linux_i686"), ("linux-aarch64", "linux_armv7l")],
411412
)
413+
@pytest.mark.skipif(
414+
platform.system() != "Linux", reason="Only makes sense to test on Linux"
415+
)
412416
def test_platform_linux32(reported, expected, monkeypatch):
413417
monkeypatch.setattr(struct, "calcsize", lambda x: 4)
414418
dist = setuptools.Distribution()

0 commit comments

Comments
 (0)