-
-
Notifications
You must be signed in to change notification settings - Fork 25.9k
TST replace assert_warns* by pytest.warns in ensemble/tests #19425
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 ensemble/tests #19425
Conversation
thanks @nuka137. Instead of matching anything, it would be better to explicitly match the warning message we're expecting |
Sorry for misunderstanding the intention. |
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 @nuka137
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 made a small push only to solve some nitpicks that are creating a warn_msg
that make the context manager easier to read.
I will merge when CIs are green |
Thank you @nuka137 |
Reference Issues/PRs
#19414
What does this implement/fix? Explain your changes.
Remove the use of assert_warns and assert_warns_message from tests in ensemble/tests.
Any other comments?
The PR is for the part of #19414