X Tutup
Skip to content

Improve error message for image_comparison decorator.#8096

Merged
NelleV merged 1 commit intomatplotlib:masterfrom
anntzer:improve-imagecomparisondecorator-error-message
Feb 18, 2017
Merged

Improve error message for image_comparison decorator.#8096
NelleV merged 1 commit intomatplotlib:masterfrom
anntzer:improve-imagecomparisondecorator-error-message

Conversation

@anntzer
Copy link
Copy Markdown
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
Copy Markdown
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.

3 participants

X Tutup