8000 TST: raise ImageComparisonFailure on size mismatch by tacaswell · Pull Request #6191 · matplotlib/matplotlib · GitHub
[go: up one dir, main page]

Skip to content

TST: raise ImageComparisonFailure on size mismatch #6191

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

Merged

Conversation

tacaswell
Copy link
Member

Previously this would result in a ValueError which would prevent proper
clean up of the tests and contaminate other tests.

8000 @tacaswell tacaswell added this to the 1.5.2 (Critical bug fix release) milestone Mar 19, 2016
@WeatherGod
Copy link
Member

I agree this should raise an ImageComparisonError, but should we also fix the cleanup decorator so that it will always cleanup, no matter what exception passes through it?

@tacaswell
Copy link
Member Author

Looking at the log for the 3.6, I am no longer sure that the state was leaking...

@mdboom
Copy link
Member
mdboom commented Mar 21, 2016

👍

@mdboom
Copy link
Member
mdboom commented Mar 23, 2016

I agree this should raise an ImageComparisonError, but should we also fix the cleanup decorator so that it will always cleanup, no matter what exception passes through it?

I believe that's already the case. Do you have something that causes it to do otherwise?

@WeatherGod
Copy link
Member

Are you asking me or @tacaswell? I was working under the assumption that his initial analysis was correct. That seem to now be in question.

@tacaswell
Copy link
Member Author

Yeah, I think I was wrong about it leaking, this just raises a better error now.

Previously this would result in a ValueError
@tacaswell tacaswell force-pushed the tst_better_handle_size_mismatch branch from b67cd44 to 49d0184 Compare March 23, 2016 18:33
@tacaswell
Copy link
Member Author

commit message edited and force pushed.

@jenshnielsen jenshnielsen merged commit 513c320 into matplotlib:v1.5.x Mar 23, 2016
@tacaswell tacaswell deleted the tst_better_handle_size_mismatch branch March 24, 2016 12:29
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 this pull request may close these issues.

4 participants
0