Skip to content

Commit c463e56

Browse files
authored
tests: another iOS flaky spot (#2539)
* tests: another iOS flaky spot Signed-off-by: Henry Schreiner <[email protected]> * tests: missing interceptions Signed-off-by: Henry Schreiner <[email protected]> --------- Signed-off-by: Henry Schreiner <[email protected]>
1 parent 8c5c738 commit c463e56

File tree

2 files changed

+5
-2
lines changed

2 files changed

+5
-2
lines changed

test/test_ios.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -171,6 +171,7 @@ def test_ios_testing_with_placeholder(tmp_path, capfd):
171171

172172

173173
@pytest.mark.serial
174+
@pytest.mark.flaky(reruns=2)
174175
def test_ios_test_command_short_circuit(tmp_path, capfd):
175176
skip_if_ios_testing_not_supported()
176177

unit_test/main_tests/conftest.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88

99
from cibuildwheel import architecture
1010
from cibuildwheel.logger import Logger
11-
from cibuildwheel.platforms import linux, macos, pyodide, windows
11+
from cibuildwheel.platforms import android, ios, linux, macos, pyodide, windows
1212
from cibuildwheel.util import file
1313

1414

@@ -87,10 +87,12 @@ def platform(request, monkeypatch):
8787
def intercepted_build_args(monkeypatch):
8888
intercepted = ArgsInterceptor()
8989

90+
monkeypatch.setattr(android, "build", intercepted)
91+
monkeypatch.setattr(ios, "build", intercepted)
9092
monkeypatch.setattr(linux, "build", intercepted)
9193
monkeypatch.setattr(macos, "build", intercepted)
92-
monkeypatch.setattr(windows, "build", intercepted)
9394
monkeypatch.setattr(pyodide, "build", intercepted)
95+
monkeypatch.setattr(windows, "build", intercepted)
9496

9597
yield intercepted
9698

0 commit comments

Comments
 (0)