Skip the test_platform_linux32 test on non-Linux platforms · pypa/wheel@1280f03 (original) (raw)

Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
1 1 from __future__ import annotations
2 2
3 3 import os.path
4 +import platform
4 5 import shutil
5 6 import stat
6 7 import struct
@@ -409,6 +410,9 @@ def test_data_dir_with_tag_build(monkeypatch, tmp_path):
409 410 "reported,expected",
410 411 [("linux-x86_64", "linux_i686"), ("linux-aarch64", "linux_armv7l")],
411 412 )
413 +@pytest.mark.skipif(
414 + platform.system() != "Linux", reason="Only makes sense to test on Linux"
415 +)
412 416 def test_platform_linux32(reported, expected, monkeypatch):
413 417 monkeypatch.setattr(struct, "calcsize", lambda x: 4)
414 418 dist = setuptools.Distribution()