Skip to content

Commit

Permalink
Correct platform string in the tests
Browse files Browse the repository at this point in the history
  • Loading branch information
xuhdev committed Jan 28, 2020
1 parent 7c11eac commit e9a63dd
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tests/test_tags.py
Original file line number Diff line number Diff line change
Expand Up @@ -438,7 +438,7 @@ def test_linux_platforms_64bit_on_64bit_os_arm(
self, is_64bit_os, is_arm, monkeypatch
):
if platform.system() != "Linux" or not is_64bit_os or not is_arm:
monkeypatch.setattr(distutils.util, "get_platform", lambda: "linux_aarch64")
monkeypatch.setattr(distutils.util, "get_platform", lambda: "linux-aarch64")
monkeypatch.setattr(tags, "_is_manylinux_compatible", lambda *args: False)
linux_platform = list(tags._linux_platforms(is_32bit=False))[-1]
assert linux_platform == "linux_aarch64"
Expand All @@ -447,7 +447,7 @@ def test_linux_platforms_32bit_on_64bit_os_arm(
self, is_64bit_os, is_arm, monkeypatch
):
if platform.system() != "Linux" or not is_64bit_os or not is_arm:
monkeypatch.setattr(distutils.util, "get_platform", lambda: "linux_aarch64")
monkeypatch.setattr(distutils.util, "get_platform", lambda: "linux-aarch64")
monkeypatch.setattr(tags, "_is_manylinux_compatible", lambda *args: False)
linux_platform = list(tags._linux_platforms(is_32bit=True))[-1]
assert linux_platform == "linux_armv7l"
Expand Down

0 comments on commit e9a63dd

Please sign in to comment.