Skip to content

Commit 9a0240f

Browse files
committed
Fix pyodide tests

1 parent 76f26be commit 9a0240f

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

unit_test/main_tests/conftest.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88

99
import pytest
1010

11-
from cibuildwheel import linux, macos, util, windows
11+
from cibuildwheel import linux, macos, pyodide, util, windows
1212

1313

1414
class ArgsInterceptor:
@@ -42,6 +42,7 @@ def ignore_call(*args, **kwargs):
4242
monkeypatch.setattr(windows, "build", fail_on_call)
4343
monkeypatch.setattr(linux, "build", fail_on_call)
4444
monkeypatch.setattr(macos, "build", fail_on_call)
45+
monkeypatch.setattr(pyodide, "build", fail_on_call)
4546

4647
monkeypatch.setattr(Path, "mkdir", ignore_call)
4748

@@ -88,6 +89,7 @@ def intercepted_build_args(monkeypatch):
8889
monkeypatch.setattr(linux, "build", intercepted)
8990
monkeypatch.setattr(macos, "build", intercepted)
9091
monkeypatch.setattr(windows, "build", intercepted)
92+
monkeypatch.setattr(pyodide, "build", intercepted)
9193

9294
yield intercepted
9395

unit_test/main_tests/main_options_test.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -126,7 +126,7 @@ def get_default_repair_command(platform: str) -> str:
126126
return "auditwheel repair -w {dest_dir} {wheel}"
127127
elif platform == "macos":
128128
return "delocate-wheel --require-archs {delocate_archs} -w {dest_dir} -v {wheel}"
129-
elif platform == "windows":
129+
elif platform == "windows" or platform == "pyodide":
130130
return ""
131131
else:
132132
msg = f"Unknown platform: {platform!r}"

0 commit comments

Comments
 (0)