-
-
Notifications
You must be signed in to change notification settings - Fork 1.2k
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 on second run with No module named 'setuptools.tests' #1500
Comments
I can't reproduce this. |
Since it appeared recently, it may be related to recent releases of tox or pytest or (more likely) the private release of tox-venv that I'm running from https://github.com/jaraco/tox-venv/tree/feature/update-env-installer. |
I still can't reproduce, using:
And the tox env is using:
|
Confirmed; if I back out to use tox-venv 0.3.1, the problem goes away. |
Nevermind, pip behaviour is really confusing in that case: it built a wheel for tox-venv, but did not update... |
This time I made sure tox-venv is up-to-date, and I still can't reproduce. |
Are you doing all of this from a virtualenv/venv? |
@benoit-pierre The failure mode is only when you have the yet-unreleased code from tox-dev/tox-venv#25. You can probably replicate the issue with |
Both tox and tox-venv have to be installed outside of ./tox; I happen to be using my system site-packages for that installation location. |
Yes, I pip installed from https://github.com/jaraco/tox-venv/archive/feature/update-env-installer.zip. |
hmm. I'm now unable to replicate the issue either. |
I'm struggling now to think of what state that I may have been in that caused the issue. Unless it pops up again, I'll close this issue, and if it does, I'll be more careful about capturing the state before making changes. |
I think you can get into this state if you interrupt the |
Running tests on Python 3.7, I can run
tox
and the tests run fine.If I try to run them a second time, the tests fail early when pytest tries to load plugins as defined in conftest.py and
setuptools.tests
doesn't exist.It seems that it doesn't exist because sometime during the first test run, the "develop" install of setuptools has been replaced with an regular install of setuptools, and since "tests" aren't installed in a regular install, those modules aren't available.
The text was updated successfully, but these errors were encountered: