Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Correctly setup comparisons in test_compare_images. #15263

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
merged 1 commit into from
Sep 16, 2019

Conversation

anntzer
Copy link
Contributor

@anntzer anntzer commented Sep 13, 2019

Copy the baseline images to the results directory, to avoid the
"QPixmap::scaled: Pixmap is a null pixmap" error from triage_tests.py.

PR Summary

PR Checklist

  • Has Pytest style unit tests
  • Code is Flake 8 compliant
  • New features are documented, with examples if plot related
  • Documentation is sphinx and numpydoc compliant
  • Added an entry to doc/users/next_whats_new/ if major new feature (follow instructions in README.rst there)
  • Documented in doc/api/api_changes.rst if API changed in a backward-incompatible way

Copy the baseline images to the results directory, to avoid the
"QPixmap::scaled: Pixmap is a null pixmap" error from triage_tests.py.
actual = convert(actual, False)
expected = convert(expected, True)
actual = convert(actual, cache=False)
expected = convert(expected, cache=True)
Copy link
Contributor Author

Choose a reason for hiding this comment

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

(not directly related, but this is clearer and I was going through compare_images to try to understand the source of the warning...)

Copy link
Member

@timhoffm timhoffm left a comment

Choose a reason for hiding this comment

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

Looks reasonable. Does this have a measurable performance impact?

@anntzer
Copy link
Contributor Author

anntzer commented Sep 15, 2019

@timhoffm Not anything measurable for me (and I don't see why it should, either).

@jklymak jklymak merged commit 70c8a4f into matplotlib:master Sep 16, 2019
@anntzer anntzer deleted the test_compare_images branch September 16, 2019 16:49
@QuLogic QuLogic added this to the v3.3.0 milestone Sep 16, 2019
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.

4 participants
Morty Proxy This is a proxified and sanitized view of the page, visit original site.