Skip to content

[BUG] fix permanently muted stdout after all_objects call#328

Merged
fkiraly merged 14 commits into
mainfrom
fix-stdout-mute
May 14, 2024
Merged

[BUG] fix permanently muted stdout after all_objects call#328
fkiraly merged 14 commits into
mainfrom
fix-stdout-mute

Conversation

@fkiraly
Copy link
Copy Markdown
Contributor

@fkiraly fkiraly commented May 14, 2024

This fixes #327, which caused a permanently muted stdout after all_objects call.

The bug was due to the sys.stdout not being properly reset after muting, in one of two instances where this was done.

This PR also replaces both instances with a muter context manager - the implementation of the muting was a bit brittle, relying on manual try/except and temp stdout handling which is risky.

Includes a test that the sys.stdout is indeed unchanged.

@fkiraly fkiraly added the bug Something isn't working label May 14, 2024
Comment thread skbase/lookup/_lookup.py Fixed
@fkiraly fkiraly merged commit 8d13246 into main May 14, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[BUG] all_objects redirects sys.stdout permanently

2 participants