Repository navigation
BUG: fix a bug where astropy.utils.console.Spinner would leak newlines for messages longer than terminal width - #16040
Merged
pllim merged 1 commit intoFeb 15, 2024
Conversation
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.
|
Contributor
|
👋 Thank you for your draft pull request! Do you know that you can use |
…s for messages longer than terminal width
neutrinoceros
force-pushed
the
utils/console/fix_spinner_leakage
branch
from
February 14, 2024 16:03
a9984eb to
c0eea35
Compare
neutrinoceros
marked this pull request as ready for review
February 14, 2024 16:19
pllim
self-requested a review
February 14, 2024 17:11
Member
|
If Stuart has his way, he would get rid of this altogether and use something else out there, but that is out of scope. Thanks for the fix! I will put this in my queue but probably won't get to it today. |
1 task
pllim
approved these changes
Feb 15, 2024
pllim
left a comment
Member
There was a problem hiding this comment.
Solution is simple and seems to work. Thanks!
meeseeksmachine
pushed a commit
to meeseeksmachine/astropy
that referenced
this pull request
Feb 15, 2024
….Spinner would leak newlines for messages longer than terminal width
pllim
added a commit
that referenced
this pull request
Feb 15, 2024
…040-on-v6.0.x Backport PR #16040 on branch v6.0.x (BUG: fix a bug where astropy.utils.console.Spinner would leak newlines for messages longer than terminal width)
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
Fixes #11556
This use case, as this whole module, is difficult to test systematically, and
Spinnerin particular only has one dedicated unit test, so I'm assuming it's okay to not include a test for this one.Instead, here's a MWE, marginally simpler than the one included in the issue: