test: update expected wheels when using auditwheel >= 4

This commit is contained in:
mayeut
2021-05-08 22:13:29 -04:00
committed by Henry Schreiner
parent a7edf88fc3
commit a972ee9fc7
4 changed files with 24 additions and 20 deletions
+1 -12
View File
@@ -1,4 +1,3 @@
import platform
import textwrap
import pytest
@@ -53,16 +52,6 @@ def test_build_identifiers(tmp_path):
# check that the number of expected wheels matches the number of build
# identifiers
# after adding CIBW_MANYLINUX_IMAGE to support manylinux2010, there
# can be multiple wheels for each wheel, though, so we need to limit
# the expected wheels
if platform.machine() in ["x86_64", "i686"]:
expected_wheels = [
w
for w in utils.expected_wheels("spam", "0.1.0")
if "-manylinux" not in w or "-manylinux1" in w
]
else:
expected_wheels = utils.expected_wheels("spam", "0.1.0")
expected_wheels = utils.expected_wheels("spam", "0.1.0")
build_identifiers = utils.cibuildwheel_get_build_identifiers(project_dir)
assert len(expected_wheels) == len(build_identifiers)