From 2e5b0442335a626f0a8b13a6125f096591982edd Mon Sep 17 00:00:00 2001 From: dannyward630 Date: Sat, 13 Jun 2026 12:57:40 +0200 Subject: [PATCH] test: cover macOS in the unit matrix --- .github/workflows/tests.yml | 2 +- tests/test_download.py | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index de0c00c..f98e3aa 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -14,7 +14,7 @@ jobs: strategy: fail-fast: false matrix: - os: [ubuntu-latest, windows-latest] + os: [ubuntu-latest, windows-latest, macos-15, macos-15-intel] python: ["3.11", "3.12"] steps: diff --git a/tests/test_download.py b/tests/test_download.py index e4159ca..af07b77 100644 --- a/tests/test_download.py +++ b/tests/test_download.py @@ -321,6 +321,8 @@ def test_ensure_binary_accepts_binary_mode_checksums(tmp_path, monkeypatch): # Force the platform branch the test mocks: monkeypatch.setattr("sys.platform", "win32") + import platform + monkeypatch.setattr(platform, "machine", lambda: "AMD64") out = ensure_binary() # No RuntimeError means the parser accepted the `*`-prefixed key. assert out.exists()