Skip to content

Commit

Permalink
Skip the test_platform_linux32 test on non-Linux platforms
Browse files Browse the repository at this point in the history
This test was failing on Windows due to the missing Py_DEBUG sysconfig variable.
  • Loading branch information
agronholm committed Mar 11, 2024
1 parent 0b4b259 commit 1280f03
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions tests/test_bdist_wheel.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
from __future__ import annotations

import os.path
import platform
import shutil
import stat
import struct
Expand Down Expand Up @@ -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()
Expand Down

0 comments on commit 1280f03

Please sign in to comment.