Skip to content

Commit 7c4c5b8

Browse files
committed
Remove test_pip_wheel_fail_cause_of_previous_build_dir as it's no longer valid
1 parent 97e2c7a commit 7c4c5b8

File tree

1 file changed

+1
-37
lines changed

1 file changed

+1
-37
lines changed

tests/functional/test_wheel.py

Lines changed: 1 addition & 37 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66

77
import pytest
88

9-
from pip._internal.cli.status_codes import ERROR, PREVIOUS_BUILD_DIR_ERROR
9+
from pip._internal.cli.status_codes import ERROR
1010
from tests.lib import pyversion # noqa: F401
1111

1212

@@ -229,42 +229,6 @@ def test_pip_wheel_source_deps(script, data):
229229
assert "Successfully built source" in result.stdout, result.stdout
230230

231231

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-
268232
def test_wheel_package_with_latin1_setup(script, data):
269233
"""Create a wheel from a package with latin-1 encoded setup.py."""
270234

0 commit comments

Comments
 (0)