Skip to content

Commit 16f145d

Browse files
committed
Add a test for the error
1 parent 073666e commit 16f145d

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

tests/functional/test_python_option.py

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,3 +39,14 @@ def test_python_interpreter(
3939
script.pip("--python", env_path, "uninstall", "simplewheel", "--yes")
4040
result = script.pip("--python", env_path, "list", "--format=json")
4141
assert json.loads(result.stdout) == before
42+
43+
def test_error_python_option_wrong_location(
44+
script: PipTestEnvironment,
45+
tmpdir: Path,
46+
shared_data: TestData,
47+
) -> None:
48+
env_path = os.fspath(tmpdir / "venv")
49+
env = EnvBuilder(with_pip=False)
50+
env.create(env_path)
51+
52+
script.pip("list", "--python", env_path, "--format=json", expect_error=True)

0 commit comments

Comments
 (0)