@@ -191,7 +191,11 @@ def test_pip_wheel_fail(script, data):
191
191
assert result .returncode != 0
192
192
193
193
194
- def test_no_clean_option_blocks_cleaning_after_wheel (script , data ):
194
+ def test_no_clean_option_blocks_cleaning_after_wheel (
195
+ script ,
196
+ data ,
197
+ use_new_resolver ,
198
+ ):
195
199
"""
196
200
Test --no-clean option blocks cleaning after wheel build
197
201
"""
@@ -202,9 +206,11 @@ def test_no_clean_option_blocks_cleaning_after_wheel(script, data):
202
206
'simple' ,
203
207
expect_temp = True ,
204
208
)
205
- build = build / 'simple'
206
- assert exists (build ), \
207
- "build/simple should still exist {result}" .format (** locals ())
209
+
210
+ if not use_new_resolver :
211
+ build = build / 'simple'
212
+ message = "build/simple should still exist {}" .format (result )
213
+ assert exists (build ), message
208
214
209
215
210
216
def test_pip_wheel_source_deps (script , data ):
@@ -224,7 +230,11 @@ def test_pip_wheel_source_deps(script, data):
224
230
assert "Successfully built source" in result .stdout , result .stdout
225
231
226
232
227
- def test_pip_wheel_fail_cause_of_previous_build_dir (script , data ):
233
+ def test_pip_wheel_fail_cause_of_previous_build_dir (
234
+ script ,
235
+ data ,
236
+ use_new_resolver ,
237
+ ):
228
238
"""
229
239
Test when 'pip wheel' tries to install a package that has a previous build
230
240
directory
@@ -240,11 +250,14 @@ def test_pip_wheel_fail_cause_of_previous_build_dir(script, data):
240
250
'wheel' , '--no-index' ,
241
251
'--find-links={data.find_links}' .format (** locals ()),
242
252
'--build' , script .venv_path / 'build' ,
243
- 'simple==3.0' , expect_error = True , expect_temp = True ,
253
+ 'simple==3.0' ,
254
+ expect_error = (not use_new_resolver ),
255
+ expect_temp = (not use_new_resolver ),
244
256
)
245
257
246
258
# Then I see that the error code is the right one
247
- assert result .returncode == PREVIOUS_BUILD_DIR_ERROR , result
259
+ if not use_new_resolver :
260
+ assert result .returncode == PREVIOUS_BUILD_DIR_ERROR , result
248
261
249
262
250
263
def test_wheel_package_with_latin1_setup (script , data ):
0 commit comments