-
-
Notifications
You must be signed in to change notification settings - Fork 2.8k
8.1.0: testing of pytest fails with installed and disabled plugins #12073
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
Comments
The plugins need to update, but we didn't issue proper deprecation warnings for it, so we've yanked the 8.1.0 release for now. |
I'm sorry, but I believe that plugins (and their update) have nothing to do with this. Or, are you trying to suggest that plugins should no longer use the I think this might be related: pytest-dev/pluggy#457. |
Ah, I thought you were complaining about the failure itself, but you were complaining that disabling the plugin didn't fix the failure. Yeah, it seems like the pluggy issue. |
Failures reported above are something new. I do not see these failures with I believe this new issue is not the same as pytest-dev/pluggy#457. Maybe they are related, but definitely not the same (and pluggy claims the bug is in pytest :-)). |
There are two issues:
Hopefully after we introduce the deprecations the plugin will be fixed and when we remove the deprecated stuff again it will be OK. |
Okay, hopefully you are right. But still, are you sure that pytest-dev/pluggy#457 is really a bug at the pluggy side? How should pluggy know that it should not load some plugins from the following?
How |
I am not.
IIRC it uses https://pluggy.readthedocs.io/en/stable/api_reference.html#pluggy.PluginManager.set_blocked |
Great info! Thank you for that. Quick search in |
Actually it is called here: pytest/src/_pytest/config/__init__.py Lines 785 to 806 in 03e5471
|
Indeed. I do not know why I failed to find it. I assume the information about disabled plugins is not passed down to the |
When I run tests for
pytest 8.1.0
with some additional pytest plugins installed and disabled, then more than 10 tests fails with errors like:In this case the
pytest-black
plugin is installed and disabled usingPYTEST_ADDOPTS=-p 'no:black'
.This is regression since
pytest 8.0.2
.pip list
from the virtual environment you are usingThe pytest testing is not run in virtual environment, but in real environment.
pytest 8.1.0
OpenIndiana (rolling release, up-to-date)
The text was updated successfully, but these errors were encountered: