From c463e56ba22f7f7e6c8871b006a06384c08cff34 Mon Sep 17 00:00:00 2001 From: Henry Schreiner Date: Fri, 1 Aug 2025 12:32:01 -0400 Subject: [PATCH] tests: another iOS flaky spot (#2539) * tests: another iOS flaky spot Signed-off-by: Henry Schreiner * tests: missing interceptions Signed-off-by: Henry Schreiner --------- Signed-off-by: Henry Schreiner --- test/test_ios.py | 1 + unit_test/main_tests/conftest.py | 6 ++++-- 2 files changed, 5 insertions(+), 2 deletions(-) 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