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

Skip to content

Conversation

azihna
Copy link
Contributor

@azihna azihna commented Mar 15, 2021

Reference Issues/PRs
References #14216

What does this implement/fix? Explain your changes.
Changed the assert_raises, assert_message, assert_warns in tests/test_pipeline.py to pytest.raises().
Added additional message checks for tests that seemed like could benefit from further clarification.

Copy link
Member

@ogrisel ogrisel left a comment

Choose a reason for hiding this comment

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

Some formatting details but otherwise LGTM.

@azihna
Copy link
Contributor Author

azihna commented Mar 15, 2021

Using re.escape() causes some problems with regex pattern. Would you mind if I reverted it to the previous state and add a comment explaining the issue? @ogrisel

@ogrisel
Copy link
Member

ogrisel commented Mar 15, 2021

Hum sorry read too quickly and did not get that error_message_1 was actually a regexp. Please go ahead and revert this change back.

azihna and others added 2 commits March 16, 2021 19:06
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 @azihna !

@jeremiedbb jeremiedbb merged commit edc4f15 into scikit-learn:main Mar 16, 2021
marrodion pushed a commit to marrodion/scikit-learn that referenced this pull request Mar 17, 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