-
-
Notifications
You must be signed in to change notification settings - Fork 25.9k
TST replace assert_warns* by pytest.warns in module svm/tests #19424
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 assert_warns* by pytest.warns in module svm/tests #19424
Conversation
…om the tests' for svm/tests
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 @shivamgargsya. Instead of matching anything, it would be better to explicitly match the warning message we're expecting
91f07b6
to
5f4a14e
Compare
hi @jeremiedbb Thanks for reviewing PR. I have updated changes to match for specific warning message. |
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 @shivamgargsya !
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. I just pushed a quick commit where I replaced the backslash (we try to not use them) and also replace the assert_no_warnigs
that was not indicated in the issue.
I will merge the PR when the CIs will be green |
Thank you @shivamgargsya |
Thanks @glemaitre for making the changes and merging the commit. |
Reference Issues/PRs
Part of #19414 for svm/tests
What does this implement/fix? Explain your changes.
Removed use of assert_warns, assert_warns_message in svm/tests package
Any other comments?
The fix is part of complete fix for issue #19414