-
-
Notifications
You must be signed in to change notification settings - Fork 25.9k
TST replace assert_raise_* by pytest.raises in neighbors module #19388
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
Co-authored-by: SteveKola <kolawolesteven99@gmail.com>
#DataUmbrella sprint |
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.
Could you in addition check the following file to replace assert_raise_message
by the the pytest.raises
context manager as well:
test_optics.py
test_mean_shift.py
test_hierarchical.py
…rns in neighbors and cluster modules
@glemaitre all raise_message and raise_warn have been changed to the |
cc: @SteveKola @Haidar13 Would you please remove Steven's email address from the PR description at the top? I tagged his GitHub handle here. Thank you. |
I removed the email address, |
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.
I introduced spurious changes when resolving the conflicts when merging the main branch. Let me undo those.
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.
Minor style comment. Otherwise, looks good to me.
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 for the PR!
Thank you for spending time reviewing my PR. |
Thanks @Haidar13 It looks good. |
Reference Issues/PRs
This PR is related to issue #14216
What does this implement/fix? Explain your changes.
Change
assert_raises
andassert_raises_regex
to :with pytest.raises(.....)