Skip to content

New matplotlib error message format breaks our tests #776

@bnavigator

Description

@bnavigator

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions