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

Fix tests on Windows by using python -m install --upgrade pip #576

Merged
merged 1 commit into from
Dec 1, 2020

Conversation

itsayellow
Copy link
Contributor

@itsayellow itsayellow commented Dec 1, 2020

  • I have added an entry to docs/changelog.md

Summary of changes

Somehow just now (?) Windows tests broke because we are using pip install --upgrade pip. Windows can't upgrade an in-use pip which is open.

Switched to the better form python -m install --upgrade pip.

Test plan

Tested by running

# command(s) to exercise these changes

@itsayellow itsayellow merged commit 8b0e70e into pypa:master Dec 1, 2020
@itsayellow itsayellow deleted the fix-tests branch December 1, 2020 19:40
@@ -80,7 +80,7 @@ def on_master_no_changes(session):

@nox.session(python=PYTHON_ALL_VERSIONS)
def tests(session):
session.install("--upgrade", "pip")
session.run("python", "-m", "pip", "install", "--upgrade", "pip")
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should we file an issue on the nox project to switch to this?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hmm maybe. It only is a problem for windows and pip.

I can file an issue.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks like nox is about to merge a PR that does this very thing. :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants