pytester: set PYTEST_DISABLE_PLUGIN_AUTOLOAD=1#6166
pytester: set PYTEST_DISABLE_PLUGIN_AUTOLOAD=1#6166blueyed wants to merge 2 commits intopytest-dev:featuresfrom
Conversation
(cherry picked from commit 0be6b40)
|
Needs blueyed#78 (and some more likely). The use case is to not have outer plugins interfere with tests. |
|
Thanks. This will break runninh with xdist and such, no? TBH not sure this is worthwhile, we should delegate having "clean" environments to tox runs. I don't think we need to guard against polluted environments when running outside Closing then, but thanks anyway. 👍 |
|
Yes, IIRC we had that before, and that's why I also started working on an option (moved to blueyed#71 for now).
Yeah, but using it by itself is slower, and the idea here is that you can actually use other plugins without pytests owns tests failing (e.g. pytest-randomly etc). |
That's fine, but I wouldn't like to go out of our way to support that; I know the PR here is simple enough, but I wouldn't like to guarantee support for that as this seems like a slippery slope to me. |
|
Hmm, not sure I understand? |
Exactly. |
|
@nicoddemus |
Via blueyed#80
(cherry picked from commit e5fff3f)