Skip to content

TST: Fix incorrect call to pytest.raises. #13194

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 1 commit into from
Jan 18, 2019

Conversation

QuLogic
Copy link
Member

@QuLogic QuLogic commented Jan 16, 2019

PR Summary

The message parameter is actually the message to print when it fails, but we want to check the exception message, which is the match parameter.

This causes a warning in new pytest.

PR Checklist

  • Has Pytest style unit tests
  • Code is Flake 8 compliant
  • [N/A] New features are documented, with examples if plot related
  • [N/A] Documentation is sphinx and numpydoc compliant
  • [N/A] Added an entry to doc/users/next_whats_new/ if major new feature (follow instructions in README.rst there)
  • [N/A] Documented in doc/api/api_changes.rst if API changed in a backward-incompatible way

@tacaswell tacaswell added this to the v3.0.3 milestone Jan 16, 2019
The `message` parameter is actually the message to print when it fails,
but we want to check the exception message, which is the `match`
parameter.
@timhoffm timhoffm merged commit 4724634 into matplotlib:master Jan 18, 2019
meeseeksmachine pushed a commit to meeseeksmachine/matplotlib that referenced this pull request Jan 18, 2019
@QuLogic QuLogic deleted the fix-pytest-raises branch January 18, 2019 23:44
NelleV added a commit that referenced this pull request Jan 20, 2019
…194-on-v3.0.x

Backport PR #13194 on branch v3.0.x (TST: Fix incorrect call to pytest.raises.)
QuLogic added a commit to meeseeksmachine/matplotlib that referenced this pull request Aug 3, 2019
The `message` parameter is actually the message to print when it fails,
but we want to check the exception message, which is the `match`
parameter.
QuLogic added a commit to meeseeksmachine/matplotlib that referenced this pull request Aug 8, 2019
The `message` parameter is actually the message to print when it fails,
but we want to check the exception message, which is the `match`
parameter.
QuLogic added a commit to meeseeksmachine/matplotlib that referenced this pull request Aug 8, 2019
The `message` parameter is actually the message to print when it fails,
but we want to check the exception message, which is the `match`
parameter.
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.

4 participants