forked from pool/python-packaging
40 lines
1.5 KiB
Diff
40 lines
1.5 KiB
Diff
|
From ee35f4ff365c3a65872f2d2ba5320c6673a5859a Mon Sep 17 00:00:00 2001
|
||
|
From: =?UTF-8?q?Dan=20=C4=8Cerm=C3=A1k?= <dcermak@suse.com>
|
||
|
Date: Thu, 8 Aug 2019 14:39:57 +0200
|
||
|
Subject: [PATCH 1/4] Fix test failures test_linux_platforms_manylinux* for non
|
||
|
x86_64
|
||
|
|
||
|
Theses tests are implicitly assuming that they are being run on x86_64 or i686,
|
||
|
but fail on ARM, PPC, etc.
|
||
|
---
|
||
|
tests/test_tags.py | 6 ++++--
|
||
|
1 file changed, 4 insertions(+), 2 deletions(-)
|
||
|
|
||
|
diff --git a/tests/test_tags.py b/tests/test_tags.py
|
||
|
index 0bb4fd6..1f1441e 100644
|
||
|
--- a/tests/test_tags.py
|
||
|
+++ b/tests/test_tags.py
|
||
|
@@ -511,7 +511,8 @@ def test_linux_platforms_manylinux1(monkeypatch):
|
||
|
if platform.system() != "Linux":
|
||
|
monkeypatch.setattr(distutils.util, "get_platform", lambda: "linux_x86_64")
|
||
|
platforms = tags._linux_platforms(is_32bit=False)
|
||
|
- assert platforms == ["manylinux1_x86_64", "linux_x86_64"]
|
||
|
+ arch = platform.machine()
|
||
|
+ assert platforms == ["manylinux1_" + arch, "linux_" + arch]
|
||
|
|
||
|
|
||
|
def test_linux_platforms_manylinux2010(monkeypatch):
|
||
|
@@ -521,7 +522,8 @@ def test_linux_platforms_manylinux2010(monkeypatch):
|
||
|
if platform.system() != "Linux":
|
||
|
monkeypatch.setattr(distutils.util, "get_platform", lambda: "linux_x86_64")
|
||
|
platforms = tags._linux_platforms(is_32bit=False)
|
||
|
- expected = ["manylinux2010_x86_64", "manylinux1_x86_64", "linux_x86_64"]
|
||
|
+ arch = platform.machine()
|
||
|
+ expected = ["manylinux2010_" + arch, "manylinux1_" + arch, "linux_" + arch]
|
||
|
assert platforms == expected
|
||
|
|
||
|
|
||
|
--
|
||
|
2.22.0
|
||
|
|