-
Notifications
You must be signed in to change notification settings - Fork 126
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
pluggy loads disabled pytest plugins #457
Comments
This is a combined bugs of pytest and xdist that pluggy is unrelated to, I'll close this once I link the related issues in xdist and pytest itself |
Here are steps to reproduce the issue (without xdist involved):
The most important part of the log follows. Please note
|
Pytester doesn't pass over plugin disabled flags from the surrounding pytest, I consider this a different bug |
I believe this is exactly the bug I'm talking about since beginning: pluggy loads disabled pytest plugins. I do not see any other related issue around. Maybe I miss something obvious... Anyway, if you think this is not a pluggy bug, but pytest, could you please provide some more details? I just found pluggy on the stack calling the disabled plugin, so I reported the problem here once it was obvious that similar reports downstream for pytest plugin projects led to nowhere because they cannot prevent pluggy to load them. Another way to reproduce the problem (now with
|
Since it looks like the problem is in pytest I reported the issue there: pytest-dev/pytest#12186 |
I do have several cases when I run testing for a pytest plugin (for example
pytest-xdist
) with other pytest plugin installed and disabled using-p no:XXX
set inPYTEST_ADDOPTS
environment variable. With such setup it looks like that the disabled plugin gets sometimes loaded for pytest subcalls.Here is a list of issues with more details:
pytest-dev/pytest-rerunfailures#242
okken/pytest-check#146
bitprophet/pytest-relaxed#31
The text was updated successfully, but these errors were encountered: