Skip to content

Commit 1cd3e22

Browse files
committed
Fix the custom_repair_wheel test to actually have clashing names
1 parent ea6e81f commit 1cd3e22

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

test/test_custom_repair_wheel.py

+5-5
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,11 @@
1616
wheel = Path(sys.argv[1])
1717
dest_dir = Path(sys.argv[2])
1818
platform = wheel.stem.split("-")[-1]
19+
if platform.startswith("pyodide"):
20+
# for the sake of this test, munge the pyodide platforms into one, it's
21+
# not valid, but it does activate the uniqueness check
22+
platform = "pyodide"
23+
1924
name = f"spam-0.1.0-py2-none-{platform}.whl"
2025
dest = dest_dir / name
2126
dest_dir.mkdir(parents=True, exist_ok=True)
@@ -50,9 +55,4 @@ def test(tmp_path, capfd):
5055
else:
5156
# We only produced one wheel (perhaps Pyodide)
5257
# check that it has the right name
53-
#
54-
# As far as I can tell, this is the only full test coverage for
55-
# CIBW_REPAIR_WHEEL_COMMAND so this is useful even in the case when no
56-
# error is raised
57-
assert "spam-0.1.0-py2-none-pyodide" in captured.out
5858
assert result[0].startswith("spam-0.1.0-py2-none-")

0 commit comments

Comments
 (0)