summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorAlex Grönholm <alex.gronholm@nextday.fi>2021-12-24 21:59:48 +0200
committerAlex Grönholm <alex.gronholm@nextday.fi>2021-12-24 21:59:48 +0200
commit7d898b7bc57ec822d17eabf4b05f1d3098a13aab (patch)
treec3e9054caf5a3b9d24b0348176eddc6b2d633449 /tests
parent55dfd587ed6182b8af224906a467dbd3f7ae1433 (diff)
downloadwheel-git-7d898b7bc57ec822d17eabf4b05f1d3098a13aab.tar.gz
Fixed detection of 32-bit Python on 64-bit OS
The sysconfig.get_platform() and distutils.util.get_platform() functions return "linux-x64_64", not "linux_x64_64" which the previous code and tests assumed.
Diffstat (limited to 'tests')
-rw-r--r--tests/test_macosx_libfile.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/test_macosx_libfile.py b/tests/test_macosx_libfile.py
index 6e3bfd4..941738e 100644
--- a/tests/test_macosx_libfile.py
+++ b/tests/test_macosx_libfile.py
@@ -213,6 +213,6 @@ class TestGetPlatformMacosx:
def test_get_platform_linux(monkeypatch):
- monkeypatch.setattr(sysconfig, "get_platform", return_factory("linux_x86_64"))
+ monkeypatch.setattr(sysconfig, "get_platform", return_factory("linux-x86_64"))
monkeypatch.setattr(sys, "maxsize", 2147483647)
assert get_platform(None) == "linux_i686"