TST replace assert_raise_* by pytest.raises in neighbors module#19388
TST replace assert_raise_* by pytest.raises in neighbors module#19388glemaitre merged 6 commits intoscikit-learn:mainfrom
Conversation
Co-authored-by: SteveKola <kolawolesteven99@gmail.com>
|
#DataUmbrella sprint |
glemaitre
left a comment
There was a problem hiding this comment.
Could you in addition check the following file to replace assert_raise_message by the the pytest.raises context manager as well:
test_optics.pytest_mean_shift.pytest_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, |
ogrisel
left a comment
There was a problem hiding this comment.
I introduced spurious changes when resolving the conflicts when merging the main branch. Let me undo those.
ogrisel
left a comment
There was a problem hiding this comment.
Minor style comment. Otherwise, looks good to me.
|
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_raisesandassert_raises_regexto :with pytest.raises(.....)