Skip to content
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

Improve error message for image_comparison decorator. #8096

Conversation

anntzer
Copy link
Contributor

@anntzer anntzer commented Feb 18, 2017

The name of the test is already reported by pytest; the mismatching
number of images is more useful.

If a non-callable is passed to the decorator the test will fail
normally and be reported as such by pytest; no need to check for it.

The name of the test is already reported by pytest; the mismatching
number of images is more useful.

If a non-callable is passed to the decorator the test will fail
normally and be reported as such by pytest; no need to check for it.
Copy link
Member

@dstansby dstansby left a comment

Choose a reason for hiding this comment

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

👍 Looks good to me (and it works too!)

@dstansby dstansby changed the title Improve error message for image_comparison decorator. [MRG+1] Improve error message for image_comparison decorator. Feb 18, 2017
@dstansby dstansby added this to the 2.1 (next point release) milestone Feb 18, 2017
@NelleV NelleV merged commit 5f98750 into matplotlib:master Feb 18, 2017
@QuLogic QuLogic changed the title [MRG+1] Improve error message for image_comparison decorator. Improve error message for image_comparison decorator. Feb 19, 2017
@anntzer anntzer deleted the improve-imagecomparisondecorator-error-message branch February 23, 2017 01:23
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.

None yet

3 participants