-
-
Notifications
You must be signed in to change notification settings - Fork 26k
TST replace pytest.warns(None) in metrics/test_classification.py #22888
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
TST replace pytest.warns(None) in metrics/test_classification.py #22888
Conversation
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.
Thanks @danifernandes-hub for the PR
Co-authored-by: Jérémie du Boisberranger <34657725+jeremiedbb@users.noreply.github.com>
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. Thanks @danifernandes-hub
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
…kit-learn#22888) Co-authored-by: Jérémie du Boisberranger <34657725+jeremiedbb@users.noreply.github.com>
Reference Issues/PRs
ref #22572
What does this implement/fix? Explain your changes.
Replaces deprecated pytest.warns(None) in test_logistic.py with a warnings.catch_warnings() context handler.
Any other comments?
I believe the warning being tested was UndefinedMetricWarning, but I'm not entirely sure about that