Skip to content

[BUG] fix faulty suppress_import_stdout in all_objects#193

Merged
fkiraly merged 1 commit into
mainfrom
fix-suppress_stdout
Jun 12, 2023
Merged

[BUG] fix faulty suppress_import_stdout in all_objects#193
fkiraly merged 1 commit into
mainfrom
fix-suppress_stdout

Conversation

@fkiraly
Copy link
Copy Markdown
Contributor

@fkiraly fkiraly commented Jun 11, 2023

This fixes the faulty suppress_import_stdout in all_objects.

Instead of always restoring the stdout after suppression to its initial state, it would instead set it to the terminal, no matter where it previously was (e.g., a jupyter notebook).

Further, it would also not be reset if an exception was encountered, which is now also handled.

This fixes the error in sktime/sktime#4692 by manual testing, although I'm not sure how one would test for this in CI.

@codecov-commenter
Copy link
Copy Markdown

codecov-commenter commented Jun 11, 2023

Codecov Report

Merging #193 (451cc42) into main (83252bc) will decrease coverage by 0.09%.
The diff coverage is 81.25%.

❗ Your organization is not using the GitHub App Integration. As a result you may experience degraded service beginning May 15th. Please install the Github App Integration for your organization. Read more.

@@            Coverage Diff             @@
##             main     #193      +/-   ##
==========================================
- Coverage   82.75%   82.66%   -0.09%     
==========================================
  Files          43       43              
  Lines        2806     2810       +4     
==========================================
+ Hits         2322     2323       +1     
- Misses        484      487       +3     
Impacted Files Coverage Δ
skbase/lookup/_lookup.py 93.79% <81.25%> (-1.09%) ⬇️

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.

2 participants