Skip to content

AttributeError: 'mpl_image_compare' not a registered marker #69

@fredrikw

Description

@fredrikw

When I try to use pytest-mpl on py.test version 3.4.2 I get the above error. After some googling, I realized that I could solve the problem by adding the following line as the first line in plugin.py/pytest_configure(), line 99
config.addinivalue_line('markers', "mpl_image_compare: Compares images from matplotlib")
I have not found out if there is a recent change in pytest or if something else is going on but it works for me...

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions