Skip to content

Commit

Permalink
[pre-commit.ci] auto fixes from pre-commit.com hooks
Browse files Browse the repository at this point in the history
for more information, see https://pre-commit.ci
  • Loading branch information
pre-commit-ci[bot] committed Aug 20, 2023
1 parent f6ee7cf commit 4b4ee03
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions tests/test_macosx_libfile.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@

import os
import struct
import sys
import sysconfig

import pytest
Expand Down Expand Up @@ -217,7 +216,10 @@ def test_get_platform_bigsur_platform(self, monkeypatch):
assert get_platform(dylib_dir) == "macosx_11_0_x86_64"


@pytest.mark.parametrize("reported,expected", [("linux-x86_64", "linux_i686"), ("linux-aarch64", "linux_armv7l")])
@pytest.mark.parametrize(
"reported,expected",
[("linux-x86_64", "linux_i686"), ("linux-aarch64", "linux_armv7l")],
)
def test_get_platform_linux32(reported, expected, monkeypatch):
monkeypatch.setattr(sysconfig, "get_platform", return_factory(reported))
monkeypatch.setattr(struct, "calcsize", lambda x: 4)
Expand Down

0 comments on commit 4b4ee03

Please sign in to comment.