Skip to content

Commit

Permalink
Remove test_pip_wheel_fail_cause_of_previous_build_dir as it's no lon…
Browse files Browse the repository at this point in the history
…ger valid
  • Loading branch information
pfmoore committed Oct 27, 2020
1 parent 97e2c7a commit 7c4c5b8
Showing 1 changed file with 1 addition and 37 deletions.
38 changes: 1 addition & 37 deletions tests/functional/test_wheel.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@

import pytest

from pip._internal.cli.status_codes import ERROR, PREVIOUS_BUILD_DIR_ERROR
from pip._internal.cli.status_codes import ERROR
from tests.lib import pyversion # noqa: F401


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


def test_pip_wheel_fail_cause_of_previous_build_dir(
script,
data,
use_new_resolver,
):
"""
Test when 'pip wheel' tries to install a package that has a previous build
directory
"""

# Given that I have a previous build dir of the `simple` package
build = script.venv_path / 'build' / 'simple'
os.makedirs(build)
build.joinpath('setup.py').write_text('#')

# When I call pip trying to install things again
result = script.pip(
'wheel', '--no-index',
'--find-links={data.find_links}'.format(**locals()),
'--build', script.venv_path / 'build',
'simple==3.0',
expect_error=(not use_new_resolver),
expect_temp=(not use_new_resolver),
expect_stderr=True,
)

assert (
"The -b/--build/--build-dir/--build-directory "
"option is deprecated."
) in result.stderr

# Then I see that the error code is the right one
if not use_new_resolver:
assert result.returncode == PREVIOUS_BUILD_DIR_ERROR, result


def test_wheel_package_with_latin1_setup(script, data):
"""Create a wheel from a package with latin-1 encoded setup.py."""

Expand Down

0 comments on commit 7c4c5b8

Please sign in to comment.