-
-
Notifications
You must be signed in to change notification settings - Fork 25.9k
TST Change assert from sklearn to pytest style in tests/test_multiclass.py #19593
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
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.
Some comments:
Co-authored-by: Olivier Grisel <olivier.grisel@ensta.org>
Co-authored-by: Olivier Grisel <olivier.grisel@ensta.org>
Co-authored-by: Olivier Grisel <olivier.grisel@ensta.org>
Co-authored-by: Olivier Grisel <olivier.grisel@ensta.org>
Co-authored-by: Olivier Grisel <olivier.grisel@ensta.org>
Co-authored-by: Olivier Grisel <olivier.grisel@ensta.org>
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!
Thanks for the reviews and your help @ogrisel |
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 @azihna !
Reference Issues/PRs
References #14216
What does this implement/fix? Explain your changes.
Changed the assert_raises, assert_message, assert_warns in tests/test_multiclass.py to pytest.raises() and pytest.warns().
Added additional message checks for tests that seemed like could benefit from further clarification.
Fixed several unrelated flake8 errors such as in test test_ovr_single_label_predict_proba.
In several cases, changed ValueError to NotFittedError since that seemed more appropriate.
Any other comments?
#DataUmbrella