Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

TST Replace assert_warns in covariance/tests #19757

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

Merged
merged 7 commits into from
Mar 23, 2021
Merged

TST Replace assert_warns in covariance/tests #19757

merged 7 commits into from
Mar 23, 2021

Conversation

isaacknjama
Copy link
Contributor

Reference Issues/PRs

Towards #19414

What does this implement/fix? Explain your changes.

Replaces assert_warns and assert_warns_message with the python context manager

Copy link
Member

@jeremiedbb jeremiedbb left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM. Thanks @isaack-mungui !

@jeremiedbb jeremiedbb changed the title Remove assert from tests Remove assert_warns from covariance/tests Mar 23, 2021
Comment on lines 210 to 215
:mod:`sklearn.covariance.tests`
...................

- |Enhancement| Replace the use of assert_warns and assert_warns_message
with the pytest context manager. :pr:`19757` by :user:`Isaack Mungui <isaack-mungui>`.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

No change log entry is needed for this PR. I added the no change log needed tag

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I've reverted the commit.

Copy link
Member

@lorentzenchr lorentzenchr left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM. @isaack-mungui Thanks for this PR.

@lorentzenchr lorentzenchr changed the title Remove assert_warns from covariance/tests TST Replace assert_warns from covariance/tests Mar 23, 2021
@lorentzenchr lorentzenchr changed the title TST Replace assert_warns from covariance/tests TST Replace assert_warns in covariance/tests Mar 23, 2021
@lorentzenchr lorentzenchr merged commit 114616d into scikit-learn:main Mar 23, 2021
@glemaitre glemaitre mentioned this pull request Apr 22, 2021
12 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants
Morty Proxy This is a proxified and sanitized view of the page, visit original site.