-
-
Notifications
You must be signed in to change notification settings - Fork 2.7k
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
All pytest tests skipped #1563
Comments
@The-Compiler can this be closed as "duplicate" or is there something else to it |
As duplicate of what? I still can't run any tests locally. |
I did take a quick look last week but could not find anything obvious in the test suite that would cause a skip in all tests, but more investigation is needed. |
Suggestions on how to debug this would certainly be welcome - I searched for "skip test" but didn't find anything in the pytest code or testsuite. |
Yeah, seems tricky... does this happen if you activate an environment manually and run the tests, or only when using tox? |
Perhaps finding the location in the code which handles skipping and printing the traceback at that point would give a hint of why it is skipping in the first place? Sorry I can't give a more concrete suggestion, I'm short on time right now. 😦 |
Same thing when I create a virtualenv and do |
If I set a breakpoint in @pytest.hookimpl(tryfirst=True)
def pytest_runtest_setup(item):
# Check if skip or skipif are specified as pytest marks
skipif_info = item.keywords.get('skipif')
if isinstance(skipif_info, (MarkInfo, MarkDecorator)):
eval_skipif = MarkEvaluator(item, 'skipif')
if eval_skipif.istrue():
item._evalskip = eval_skipif
import pdb; pdb.set_trace() # <-----
pytest.skip(eval_skipif.getexplanation()) It seems indeed like every item has a
No idea yet where it's coming from. |
Blargh... I set a breakpoint in import pytest
def pytest_collection_modifyitems(items):
for item in items:
skipif_marker = pytest.mark.skipif(True, reason='skip test')
item.add_marker(skipif_marker) No idea why, probably was trying out something and forgot about it... 😆 Sorry! 😊 |
Hehehe 😁 |
So I tried to contribute something again, but when running
tox -e py27
on the current master I get:Any idea what's going on there?!
edit: Whoops, submitted the issue to early. Sorry!
The text was updated successfully, but these errors were encountered: