mirror of
https://github.com/pypa/pip
synced 2023-12-13 21:30:23 +01:00
Add a test for the error
This commit is contained in:
parent
073666e299
commit
16f145d306
|
@ -39,3 +39,14 @@ def test_python_interpreter(
|
|||
script.pip("--python", env_path, "uninstall", "simplewheel", "--yes")
|
||||
result = script.pip("--python", env_path, "list", "--format=json")
|
||||
assert json.loads(result.stdout) == before
|
||||
|
||||
def test_error_python_option_wrong_location(
|
||||
script: PipTestEnvironment,
|
||||
tmpdir: Path,
|
||||
shared_data: TestData,
|
||||
) -> None:
|
||||
env_path = os.fspath(tmpdir / "venv")
|
||||
env = EnvBuilder(with_pip=False)
|
||||
env.create(env_path)
|
||||
|
||||
script.pip("list", "--python", env_path, "--format=json", expect_error=True)
|
||||
|
|
Loading…
Reference in a new issue