File tree 2 files changed +13
-3
lines changed
2 files changed +13
-3
lines changed Original file line number Diff line number Diff line change @@ -171,7 +171,10 @@ def test_no_xbuild_tool_definition(tmp_path, capfd):
171
171
172
172
# The expected wheels were produced.
173
173
expected_wheels = utils .expected_wheels (
174
- "spam" , "0.1.0" , platform = "ios" , python_abi_tags = ["cp313-cp313" ]
174
+ "spam" ,
175
+ "0.1.0" ,
176
+ platform = "ios" ,
177
+ python_abi_tags = ["cp313-cp313" ],
175
178
)
176
179
assert set (actual_wheels ) == set (expected_wheels )
177
180
@@ -214,6 +217,7 @@ def test_empty_xbuild_tool_definition(tmp_path, capfd):
214
217
assert "Your project configuration does not define any cross-build tools." not in captured .err
215
218
216
219
220
+ @pytest .mark .serial
217
221
def test_ios_test_command_without_python_dash_m (tmp_path , capfd ):
218
222
"""pytest should be able to run without python -m, but it should warn."""
219
223
if utils .platform != "macos" :
Original file line number Diff line number Diff line change @@ -157,8 +157,8 @@ def expected_wheels(
157
157
package_version : str ,
158
158
manylinux_versions : list [str ] | None = None ,
159
159
musllinux_versions : list [str ] | None = None ,
160
- macosx_deployment_target : str = "10.9" ,
161
- iphoneos_deployment_target : str = "13.0" ,
160
+ macosx_deployment_target : str | None = None ,
161
+ iphoneos_deployment_target : str | None = None ,
162
162
machine_arch : str | None = None ,
163
163
platform : str = platform ,
164
164
python_abi_tags : list [str ] | None = None ,
@@ -174,6 +174,12 @@ def expected_wheels(
174
174
if platform == "linux" :
175
175
machine_arch = arch_name_for_linux (machine_arch )
176
176
177
+ if macosx_deployment_target is None :
178
+ macosx_deployment_target = os .environ .get ("MACOSX_DEPLOYMENT_TARGET" , "10.9" )
179
+
180
+ if iphoneos_deployment_target is None :
181
+ iphoneos_deployment_target = os .environ .get ("IPHONEOS_DEPLOYMENT_TARGET" , "13.0" )
182
+
177
183
architectures = [machine_arch ]
178
184
if not single_arch :
179
185
if platform == "linux" :
You can’t perform that action at this time.
0 commit comments