Skip to content

Commit

Permalink
Fix test_runner_work_in_environments_with_no_pip to work under --use-…
Browse files Browse the repository at this point in the history
…zipapp
  • Loading branch information
pfmoore committed Jul 28, 2022
1 parent 662f940 commit ee6c7ca
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion tests/functional/test_pip_runner_script.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,9 @@ def test_runner_work_in_environments_with_no_pip(

# Ensure there's no pip installed in the environment
script.pip("uninstall", "pip", "--yes", use_module=True)
script.pip("--version", expect_error=True)
# We don't use script.pip to check here, as when testing a
# zipapp, script.pip will run pip from the zipapp.
script.run("python", "-c", "import pip", expect_error=True)

# The runner script should still invoke a usable pip
result = script.run("python", os.fspath(runner), "--version")
Expand Down

0 comments on commit ee6c7ca

Please sign in to comment.