-
-
Notifications
You must be signed in to change notification settings - Fork 26k
MNT move pytest pluging list to root folder #22976
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
Conversation
I do not think this works with pytest --collect-only sklearn |
"discovering tests" in VSCODE now fails because of this. What's the workaround there then? |
I tried a few ways to fix this, and it turns out I pushed a commit where |
Then is this comment not valid?
|
There are two mechanisms for registering the plugin. One in Lines 13 to 16 in d14fd82
and one in |
I pushed another commit with your original solution of moving |
Thanks, you might wanna cancel Travis runs though :P |
Nope, the wheels fail 🙄 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This PR now works now.
I tested on my fork with SKLEARN_TESTS_GLOBAL_RANDOM_SEED="any"
and SKLEARN_TESTS_GLOBAL_RANDOM_SEED
is shown correctly in the logs.
@adrinjalali or @thomasjpfan do you confirm that it solves the discovering tests issue on vscode ? |
I can confirm that test collection works on VSCode. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
…-learn#22976) Co-authored-by: Thomas J. Fan <thomasjpfan@gmail.com>
…-learn#22976) Co-authored-by: Thomas J. Fan <thomasjpfan@gmail.com>
Activating plugins in
conftest.py
located in a non-root location is deprecated, andpytest --collect-only
fails onpytest=6.2.5
. This PR moves the plugin activation to the root config file.cc @ogrisel