-
-
Notifications
You must be signed in to change notification settings - Fork 25.9k
TST replace assert_raises by pytest.raises in test_least_angle, test_omp, test_test_theil_sen #19406
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.
Could you make the following changes
Be aware that the context manager is |
#DataUmbrella sprint |
#DataUmbrella |
For your information, I just fixed a repeated typo in @glemaitre's suggestions. @abdulelahsm are you still interested in finalizing this PR? Can you please address @glemaitre's comments and update this pull request accordingly? Make sure that the tests pass by reading the error messages of the test execution reports accessible via the "Details" links: |
Thanks a lot for your help. Yes I'll wrap it up soon @ogrisel |
@abdulelahsm How is this PR going? Please let us know if we can answer any questions. cc: @reshamas |
Hey, I made the required changes but I'm trying to understand why the tests are failing |
@ogrisel hey Oliver, are these merge conflict errors something that I could fix? my branch is up to date using fetch upstream |
You need to merge the |
assert (orthogonal_mp_gram(G, Xy, n_nonzero_coefs=5).shape == | ||
(n_features, 3)) |
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.
It's ok for this time, but next time please try to refrain to change the formatting of the lines that are fare away from the real changes of your PR to keep the review focused on the main topic (and keep the git history meaningful).
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 apologize, I have a lot to learn and I appreciate your time and effort. Thank you for the valuable feedback
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 comment but otherwise LGTM.
Co-authored-by: Olivier Grisel <olivier.grisel@ensta.org>
Co-authored-by: Chiara Marmo <cmarmo@users.noreply.github.com>
Thanks @abdulelahsm |
…omp, test_test_theil_sen (scikit-learn#19406) Co-authored-by: Olivier Grisel <olivier.grisel@gmail.com> Co-authored-by: Olivier Grisel <olivier.grisel@ensta.org> Co-authored-by: Guillaume Lemaitre <g.lemaitre58@gmail.com> Co-authored-by: Chiara Marmo <cmarmo@users.noreply.github.com>
Reference Issues/PRs
Fixes #14216
What does this implement/fix? Explain your changes.
test_least_angle, test_omp, test_test_theil_sen (all .py files)
replaced assert_raises with pytest.error()
Any other comments?