BUG: Fix test_plt_scatter_masked matplotlib check that broke pyinstaller job#16854
Merged
pllim merged 1 commit intoastropy:mainfrom Aug 19, 2024
Merged
BUG: Fix test_plt_scatter_masked matplotlib check that broke pyinstaller job#16854pllim merged 1 commit intoastropy:mainfrom
pllim merged 1 commit intoastropy:mainfrom
Conversation
for pyinstaller
Contributor
|
Thank you for your contribution to Astropy! 🌌 This checklist is meant to remind the package maintainers who will review this pull request of some common things to look for.
|
This comment was marked as outdated.
This comment was marked as outdated.
mhvk
approved these changes
Aug 19, 2024
Contributor
mhvk
left a comment
There was a problem hiding this comment.
This looks good - I'm approving, though obviously the real test is in the tests...
Member
Author
|
Log from minimal deps job: Log from all deps job: Log from pyinstaller: |
Member
Author
|
Link check failure unrelated. RTD job got stuck and also irrelevant, so I canceled it. Merging. Thanks for the review! |
Contributor
|
Thanks! Happy to have that one behind us... |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Description
The check was originally modified in #16820 but that caused other tests to be skipped when they are not supposed to when matplotlib is not installed (can't say I grok why at the time of writing this). So #16843 was done but it caused pyinstaller job to fail with
E KeyError: 'matplotlib'during test collection. This PR is an attempt to skip onlytest_plt_scatter_maskedwhen matplotlib conditions are not satisfied and to not break pyinstaller job doing that.