Thanks to visit codestin.com
Credit goes to github.com

Skip to content

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