Skip to content

fix I/O operation on closed file error with CliRunner and echo_via_pager#3482

Open
ChrisPappalardo wants to merge 3 commits into
pallets:mainfrom
ChrisPappalardo:fix-io-operation-on-closed-file-error
Open

fix I/O operation on closed file error with CliRunner and echo_via_pager#3482
ChrisPappalardo wants to merge 3 commits into
pallets:mainfrom
ChrisPappalardo:fix-io-operation-on-closed-file-error

Conversation

@ChrisPappalardo
Copy link
Copy Markdown
Contributor

Fixes #3449 by adding a thinner version of MaybeStripAnsi that is not subclassed from io.TextIOWrapper when handling sys.stdout and sys.stderr streams.

@davidism
Copy link
Copy Markdown
Member

Seems like we should be able to keep the single wrapper and override the close method to do nothing in the problematic case.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

"I/O operation on closed file" error with CliRunner and echo_via_pager under 8.4

2 participants