Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add a --use-zipapp option to the test suite #11250

Merged
merged 11 commits into from
Aug 1, 2022
Prev Previous commit
Fix test_runner_work_in_environments_with_no_pip to work under --use-…
…zipapp
  • Loading branch information
pfmoore committed Jul 28, 2022
commit ee6c7caabdfcd0bddd9b92d05cddd8b6be7cbe10
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