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

[MRG] Fix integration test for new pip #491

Merged

Conversation

betatim
Copy link
Member

@betatim betatim commented Jan 25, 2020

This is an attempt to fix the integration test. Closes #490.

The TL;DR is that the newest version of pip will switch to the behaviour of pip install --user ... when you run pip install ... without being able to write to the global package directory. This means our integration test started to fail because the install we were doing now succeeded. However we were testing if a user could install things to the global directory or not. This means the test failing was a false positive (the install succeeded but not because the user could write to the global dir).

This PR makes it so that the pip command used in the test won't enable --user if it can't write to the global directory. Instead it will fail (as it used to).

An alternative would be to check if the pip command fails and if it succeeds check the location the package got installed to.

@betatim betatim force-pushed the fix-integration-test-new-pip branch from 56fd8f9 to fb67438 Compare January 25, 2020 18:07
@betatim betatim changed the title [WIP] Fix integration test for new pip [MRG] Fix integration test for new pip Jan 25, 2020
@GeorgianaElena
Copy link
Member

Yaay! Thanks for fixing this @betatim

@GeorgianaElena GeorgianaElena merged commit 5aa4637 into jupyterhub:master Jan 26, 2020
@betatim betatim deleted the fix-integration-test-new-pip branch January 26, 2020 16:02
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.

Failing integration tests
2 participants