File tree 3 files changed +13
-1
lines changed 3 files changed +13
-1
lines changed Original file line number Diff line number Diff line change 1
1
variables :
2
2
CI : true
3
+ PIP_CI_MACOS_AZURE : true
3
4
4
5
jobs :
5
6
- template : jobs/test.yml
Original file line number Diff line number Diff line change 3
3
import pytest
4
4
5
5
from pip ._internal .build_env import BuildEnvironment
6
- from tests .lib import create_basic_wheel_for_package , make_test_finder
6
+ from tests .lib import (
7
+ create_basic_wheel_for_package ,
8
+ make_test_finder ,
9
+ skip_if_azure_macos ,
10
+ )
7
11
8
12
9
13
def indent (text , prefix ):
@@ -91,6 +95,7 @@ def test_build_env_allow_only_one_install(script):
91
95
'installing in {prefix}' .format (** locals ()))
92
96
93
97
98
+ @skip_if_azure_macos
94
99
def test_build_env_requirements_check (script ):
95
100
96
101
create_basic_wheel_for_package (script , 'foo' , '2.0' )
@@ -149,6 +154,7 @@ def test_build_env_requirements_check(script):
149
154
''' )
150
155
151
156
157
+ @skip_if_azure_macos
152
158
def test_build_env_overlay_prefix_has_priority (script ):
153
159
create_basic_wheel_for_package (script , 'pkg' , '2.0' )
154
160
create_basic_wheel_for_package (script , 'pkg' , '4.3' )
@@ -168,6 +174,7 @@ def test_build_env_overlay_prefix_has_priority(script):
168
174
assert result .stdout .strip () == '2.0' , str (result )
169
175
170
176
177
+ @skip_if_azure_macos
171
178
@pytest .mark .incompatible_with_test_venv
172
179
def test_build_env_isolation (script ):
173
180
Original file line number Diff line number Diff line change @@ -1166,6 +1166,10 @@ def need_mercurial(fn):
1166
1166
1167
1167
skip_if_python2 = pytest .mark .skipif (PY2 , reason = "Non-Python 2 only" )
1168
1168
skip_if_not_python2 = pytest .mark .skipif (not PY2 , reason = "Python 2 only" )
1169
+ skip_if_azure_macos = pytest .mark .skipif (
1170
+ "PIP_CI_MACOS_AZURE" in os .environ ,
1171
+ reason = "MacOS on Azure Pipelines generates wrong temporary files"
1172
+ )
1169
1173
1170
1174
1171
1175
# Workaround for test failures after new wheel release.
You can’t perform that action at this time.
0 commit comments