|
6 | 6 |
|
7 | 7 | import pytest
|
8 | 8 |
|
9 |
| -from pip._internal.cli.status_codes import ERROR, PREVIOUS_BUILD_DIR_ERROR |
| 9 | +from pip._internal.cli.status_codes import ERROR |
10 | 10 | from tests.lib import pyversion # noqa: F401
|
11 | 11 |
|
12 | 12 |
|
@@ -229,42 +229,6 @@ def test_pip_wheel_source_deps(script, data):
|
229 | 229 | assert "Successfully built source" in result.stdout, result.stdout
|
230 | 230 |
|
231 | 231 |
|
232 |
| -def test_pip_wheel_fail_cause_of_previous_build_dir( |
233 |
| - script, |
234 |
| - data, |
235 |
| - use_new_resolver, |
236 |
| -): |
237 |
| - """ |
238 |
| - Test when 'pip wheel' tries to install a package that has a previous build |
239 |
| - directory |
240 |
| - """ |
241 |
| - |
242 |
| - # Given that I have a previous build dir of the `simple` package |
243 |
| - build = script.venv_path / 'build' / 'simple' |
244 |
| - os.makedirs(build) |
245 |
| - build.joinpath('setup.py').write_text('#') |
246 |
| - |
247 |
| - # When I call pip trying to install things again |
248 |
| - result = script.pip( |
249 |
| - 'wheel', '--no-index', |
250 |
| - '--find-links={data.find_links}'.format(**locals()), |
251 |
| - '--build', script.venv_path / 'build', |
252 |
| - 'simple==3.0', |
253 |
| - expect_error=(not use_new_resolver), |
254 |
| - expect_temp=(not use_new_resolver), |
255 |
| - expect_stderr=True, |
256 |
| - ) |
257 |
| - |
258 |
| - assert ( |
259 |
| - "The -b/--build/--build-dir/--build-directory " |
260 |
| - "option is deprecated." |
261 |
| - ) in result.stderr |
262 |
| - |
263 |
| - # Then I see that the error code is the right one |
264 |
| - if not use_new_resolver: |
265 |
| - assert result.returncode == PREVIOUS_BUILD_DIR_ERROR, result |
266 |
| - |
267 |
| - |
268 | 232 | def test_wheel_package_with_latin1_setup(script, data):
|
269 | 233 | """Create a wheel from a package with latin-1 encoded setup.py."""
|
270 | 234 |
|
|
0 commit comments