diff --git a/test/test_ios.py b/test/test_ios.py index 9a41d2d3..a21cc1cf 100644 --- a/test/test_ios.py +++ b/test/test_ios.py @@ -171,6 +171,7 @@ def test_ios_testing_with_placeholder(tmp_path, capfd): @pytest.mark.serial +@pytest.mark.flaky(reruns=2) def test_ios_test_command_short_circuit(tmp_path, capfd): skip_if_ios_testing_not_supported() diff --git a/unit_test/main_tests/conftest.py b/unit_test/main_tests/conftest.py index ef5c0834..cf92ea1a 100644 --- a/unit_test/main_tests/conftest.py +++ b/unit_test/main_tests/conftest.py @@ -8,7 +8,7 @@ import pytest from cibuildwheel import architecture from cibuildwheel.logger import Logger -from cibuildwheel.platforms import linux, macos, pyodide, windows +from cibuildwheel.platforms import android, ios, linux, macos, pyodide, windows from cibuildwheel.util import file @@ -87,10 +87,12 @@ def platform(request, monkeypatch): def intercepted_build_args(monkeypatch): intercepted = ArgsInterceptor() + monkeypatch.setattr(android, "build", intercepted) + monkeypatch.setattr(ios, "build", intercepted) monkeypatch.setattr(linux, "build", intercepted) monkeypatch.setattr(macos, "build", intercepted) - monkeypatch.setattr(windows, "build", intercepted) monkeypatch.setattr(pyodide, "build", intercepted) + monkeypatch.setattr(windows, "build", intercepted) yield intercepted