Skip to content

New matplotlib error message format breaks our tests #776

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

Closed
bnavigator opened this issue Oct 8, 2022 · 0 comments · Fixed by #777
Closed

New matplotlib error message format breaks our tests #776

bnavigator opened this issue Oct 8, 2022 · 0 comments · Fixed by #777

Comments

@bnavigator
Copy link
Contributor

First seen in #775:

# Now add an unrecognized keyword and make sure there is an error
with pytest.raises(AttributeError, match="has no property"):
function(*args, **kwargs, unknown=None)

>           with pytest.raises(AttributeError, match="has no property"):
E           AssertionError: Regex pattern 'has no property' does not match "Line2D.set() got an unexpected keyword argument 'unknown'".

control/tests/kwargs_test.py:145: AssertionError
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 a pull request may close this issue.

1 participant