forked from pool/python-packaging
e1805b374c
drop dependency on attrs OBS-URL: https://build.opensuse.org/request/show/724501 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-packaging?expand=0&rev=30
27 lines
1002 B
Diff
27 lines
1002 B
Diff
From d691f8387975b426585bb197fc3f8d8ad6ba02c2 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 15:54:48 +0200
|
|
Subject: [PATCH 4/5] Fix test_macos_version_detection failure on 32 bit Linux
|
|
|
|
tags._mac_arch always returns i386 on 32 bit Linux and thereby
|
|
tags._mac_platforms()[0] ends with "i386" even in the arch="x86_64" case
|
|
---
|
|
tests/test_tags.py | 1 +
|
|
1 file changed, 1 insertion(+)
|
|
|
|
diff --git a/tests/test_tags.py b/tests/test_tags.py
|
|
index 5ffbfa5..0e5b0c6 100644
|
|
--- a/tests/test_tags.py
|
|
+++ b/tests/test_tags.py
|
|
@@ -183,6 +183,7 @@ def test_macos_version_detection(monkeypatch):
|
|
def test_macos_arch_detection(arch, monkeypatch):
|
|
if platform.system() != "Darwin" or platform.mac_ver()[2] != arch:
|
|
monkeypatch.setattr(platform, "mac_ver", lambda: ("10.14", ("", "", ""), arch))
|
|
+ monkeypatch.setattr(tags, "_mac_arch", lambda *args: arch)
|
|
assert tags._mac_platforms((10, 14))[0].endswith(arch)
|
|
|
|
|
|
--
|
|
2.22.0
|
|
|