Skip to content

Handle match with pytest.raises() #6753

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
Feb 22, 2020
Merged

Conversation

blueyed
Copy link
Contributor

@blueyed blueyed commented Feb 17, 2020

TODO:

  • changelog rephrasing

Fixes #6752.

Copy link
Member

@RonnyPfannschmidt RonnyPfannschmidt left a comment

Choose a reason for hiding this comment

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

as far as i can tell this change elevates a bug (not passing match to the function) to a breaking api change

@RonnyPfannschmidt
Copy link
Member

@nicoddemus #5529 as far as i can tell introduced the bug and i missed it back then

@blueyed blueyed restored the raises-match-func branch February 17, 2020 14:19
@blueyed blueyed reopened this Feb 17, 2020
blueyed added a commit to blueyed/pytest that referenced this pull request Feb 17, 2020
Copy link
Member

@nicoddemus nicoddemus left a comment

Choose a reason for hiding this comment

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

Thanks @blueyed!

@blueyed
Copy link
Contributor Author

blueyed commented Feb 22, 2020

Rebased and fixed the typing in 37a283b.

@blueyed blueyed requested a review from bluetech February 22, 2020 13:04
@blueyed blueyed merged commit c8b4a1a into pytest-dev:master Feb 22, 2020
@blueyed blueyed deleted the raises-match-func branch February 22, 2020 22:32
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

"match" ignored with pytest.raises(Exc, func, match=…)
4 participants