Uh oh!
There was an error while loading.Please reload this page.
- Notifications
You must be signed in to change notification settings - Fork8.1k
Accept LA icons for the toolbar#25174
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 ourterms of service andprivacy statement. We’ll occasionally send you account related emails.
Already on GitHub?Sign in to your account
Uh oh!
There was an error while loading.Please reload this page.
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others.Learn more.
Thank you for opening your first PR into Matplotlib!
If you have not heard from us in a while, please feel free to ping@matplotlib/developers or anyone who has commented on the PR. Most of our reviewers are volunteers and sometimes things fall through the cracks.
You can also join uson gitter for real-time discussion.
For details on testing, writing docs, and our review process, please seethe developer guide
We strive to be a welcoming and open project. Please follow ourCode of Conduct.
jklymak left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others.Learn more.
Looks good. not sure, but should this be intest_backend_tools.py?
Uh oh!
There was an error while loading.Please reload this page.
Uh oh!
There was an error while loading.Please reload this page.
fgoudreault commentedFeb 8, 2023
I put the test in |
jklymak commentedFeb 8, 2023
Thats probably fine, but is the same bug present in other backends? |
fgoudreault commentedFeb 8, 2023
As the bug stems from the |
jklymak commentedFeb 8, 2023
Thats great - however, does the test apply to the other backends? If so, perhaps better to put somewhere that all the backends get tested to increase our test coverage? BTW, I haven't checked all this, so feel free to tell me the test is definitely only useful for Tk and I'm happy to approve - we can always generalize the test later if you are not correct. |
fgoudreault commentedFeb 8, 2023
Indeed, this test could be applied to any backend! You are right that it would be more useful if I can parametrize the test for any backend. Although I am not familiar with the whole set of matplotlib unittests. Do you know if there are tests that parametrize over backends so that I can generalize the one I introduce here? Thanks |
fgoudreault commentedFeb 8, 2023
I used the parametrization defined in |
fgoudreault commentedFeb 8, 2023
Oh it seems there is a very similar bug in the wx backend seen on appveyor. I could reproduce it locally and fixed it. I'll push the fix. |
anntzer commentedFeb 8, 2023
Sorry for the conflicting informations, but I think this test should rather go into test_backends_interactive.py::_test_interactive_impl. This is because interactive tests are very, very slow to start up (as they need to be run into their own subprocess) so it is better to try and minimize the number of tests and do more in a single test. Probably we should better document this at the top of test_backends_interactive.py... |
fgoudreault commentedFeb 9, 2023
Sure I'll move it there |
jklymak left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others.Learn more.
I'm not an expert on how the tests are structures (obviously 🐑), but this looks good to me. Perhaps@anntzer will have a minute for a second review.
Uh oh!
There was an error while loading.Please reload this page.
tacaswell left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others.Learn more.
Modulo sorting out the extra try/except added in the test.
tacaswell commentedFeb 9, 2023
Thank you for your work on this@fgoudreault and congratulations on your first merged Matplotlib PR 🎉 I hope we hear from you again! |
fgoudreault commentedFeb 9, 2023
The pleasure is mine! Thanks to all for your time! |
…174-on-v3.7.xBackport PR#25174 on branch v3.7.x (Accept LA icons for the toolbar)
Uh oh!
There was an error while loading.Please reload this page.
PR Summary
Fixes#25164 by converting a PIL icon image to RGBA when loading it. Also created unittest to check the bug in the future.
PR Checklist
Documentation and Tests
pytestpasses)Release Notes
.. versionadded::directive in the docstring and documented indoc/users/next_whats_new/.. versionchanged::directive in the docstring and documented indoc/api/next_api_changes/next_whats_new/README.rstornext_api_changes/README.rst