GeezerVisonThe World Wide Web, restored to 800 pixels of glory. | |||||||||
| Home|About|Gaming cabinet|Archives|How it works|Starter sites | |||||||||
GeezerVison is showing github.com — Do not let the GC close a borrowed `stdout` by kdeldycke · Pull Request #3533 · pallets/click Conversation
|
|
I realized there's already |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
|
There also seems to be way too many context managers and levels of indirection for the pager machinery at this point. I'm not sure how we got here, but I'd sure love to refactor and simplify it somehow. |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
TIL. Let me play a bit with |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
stdout
Seems to do the trick! Thanks for the hint! :) |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
This part of Click is insane. The only thing that gives me confidence is the amount of collected cases from users that we transformed into unittests. |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
72c07e8 to
8b6441f
Compare
|
I squashed the commits, this is ready to be reviewed. I'll go down the pager rabbit hole in other PRs. |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
|
@ChrisPappalardo can you review this? |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
|
I can confirm that this fixes all the I/O problems for us. We still have 30 failed tests, but I haven't had time to investigate them yet. |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
LGTM - this has evolved pretty far from my initial PR, but I think this approach works |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
Complete the "I/O operation on closed file" fix from pallets#3482, and definitely addresses pallets#3449.
8b6441f to
051bb0f
Compare
There was an error while loading. Please reload this page.
There was an error while loading. Please reload this page.
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
There was an error while loading. Please reload this page.