-
Notifications
You must be signed in to change notification settings - Fork 3k
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
Tests fail when executing test_install_user.py locally #7785
Comments
Is your Tox installed with virtualenv>=20? There are a few tests (especially those marked with |
No, I didn't install tox or pytest under virtualenv and above failures are not in a virtualenv either. I installed these packages for my current user with:
I am able to reproduce the above test failures even if I uninstall virtualenv (both user and system-wide packages). If I run the tests by passing
then the above failing tests are skipped (probably due to them being marked with |
Tox has a dependency on virtualenv; I meant to ask whether you’re using You can find out the version of virtualenv tox is depending on with |
I see but it's still weird. Those tests still fail with virtualenv<20.
I also had virtualenv v16.7.10 installed in the log as of my original post:
I also tried deleting |
I'll see if I can figure this out tonight. |
Could you share the output of |
Yep, sure. Here you go:
|
The tests seem to failing cuz of this error (see log):
This error can also reproduced using virtualenv, like so: $ virtualenv --version
16.7.10
$ virtualenv env --system-site-packages
$ pip install requests==2.20.0
$ pip install requests==2.20.1 --user
ERROR: Will not install to the user site because it will lack sys.path precedence to requests in /home/ritiek/Downloads/pip/env/lib/python3.6/site-packages Is this error expected here? Because I think a similar thing happens (in line 132 and 134) in the failing test: pip/tests/functional/test_install_user.py Lines 123 to 152 in 5b442d5
I'm kinda confused here. Since this test is marked with However, if this is really the case (that this test runs in virtualenv even when |
For what it's worth I see the same thing in 6 tests:
This is on debian unstable, python 3.8, virtualenv 16.7.10, pip git master. tox -e py38 -- -n auto
|
Ah. Our test's patching seems to be not working. :( |
Environment
pip 20.1.dev0
(35181cd)Python 3.6.9
Linux Mint 19.3
Description
Locally executing tests in
tests/functional/test_install_user.py
returns failures.Expected behavior
All tests should pass.
How to Reproduce
$ tox -e py36 -- tests/functional/test_install_user.py
.(the same tests also fail when executing the complete test suite)
Output
$ tox -e py36 -- -v tests/functional/test_install_user.py
I thought it's because I didn't execute the test as root (guessing from the failing test name
test_install_user_conflict_in_globalsite
) but executing as root causes the same failures.The text was updated successfully, but these errors were encountered: