8000 [MRG] TST Remove test_import_sklearn_no_warnings by rth · Pull Request #12244 · scikit-learn/scikit-learn · GitHub
[go: up one dir, main page]

Skip to content

[MRG] TST Remove test_import_sklearn_no_warnings #12244

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

Merged

Conversation

rth
Copy link
Member
@rth rth commented Oct 2, 2018

This removes the test_import_sklearn_no_warnings added in #11431 (by me) as it is indeed of limited use.

In the original motivation was to detect when importing scikit-learn or one of the top level modules produces warning. However since warnings can be due to causes outside our control (same as e.g. for our DeprecationWarning detection) it was decided to only warn in this case instead of failing. So currently this has as much values as the warnings caught during collection time in the logs. And the new pytest warning capture at collection time could be used to achieve the same effect better.

Incidentally this also lead to one PyPy test failure in #12243 (because of the exceptions handling that's not general enough in this test). I think it might be also worth back-porting this to 0.20.1 to reduce the risk of this test failing in other environments..

TBH, both reviewers found this test dubious at the time, and I heard another similar opinion post-merge.

Copy link
Member
@qinhanmin2014 qinhanmin2014 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM, +1 for 0.20.1

@qinhanmin2014 qinhanmin2014 added this to the 0.20.1 milestone Oct 2, 2018
@amueller
Copy link
Member
amueller commented Oct 2, 2018

lol happy to see this go ;)

@amueller amueller merged commit dfd009d into scikit-learn:master Oct 2, 2018
jnothman pushed a commit to jnothman/scikit-learn that referenced this pull request Oct 15, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants
0