@@ -20,10 +20,12 @@ def test_platform(self):
20
20
"""
21
21
22
22
23
- # iOS tests shouldn't be run in parallel, because they're dependent on starting
24
- # a simulator. It's *possible* to start multiple simulators, but not advisable
25
- # to start as many simulators as there are CPUs on the test machine.
26
- @pytest .mark .xdist_group (name = "ios" )
23
+ # iOS tests shouldn't be run in parallel, because they're dependent on calling
24
+ # Xcode, and starting a simulator. These are both multi-threaded operations, and
25
+ # it's easy to overload the CI machine if there are multiple test processes
26
+ # running multithreaded processes. Therefore, they're put in the serial group,
27
+ # which is guaranteed to run single-process.
28
+ @pytest .mark .serial
27
29
@pytest .mark .parametrize (
28
30
"build_config" ,
29
31
[
@@ -48,6 +50,7 @@ def test_ios_platforms(tmp_path, build_config):
48
50
"CIBW_BUILD" : "cp313-*" ,
49
51
"CIBW_TEST_SOURCES" : "tests" ,
50
52
"CIBW_TEST_COMMAND" : "unittest discover tests test_platform.py" ,
53
+ "CIBW_BUILD_VERBOSITY" : "1" ,
51
54
** build_config ,
52
55
},
53
56
)
@@ -71,7 +74,7 @@ def test_ios_platforms(tmp_path, build_config):
71
74
assert set (actual_wheels ) == expected_wheels
72
75
73
76
74
- @pytest .mark .xdist_group ( name = "ios" )
77
+ @pytest .mark .serial
75
78
def test_no_test_sources (tmp_path , capfd ):
76
79
if utils .platform != "macos" :
77
80
pytest .skip ("this test can only run on macOS" )
0 commit comments