Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Capturing sys.stdout too early breaks pytest capfd
Since at least testing and possibly users may update sys.stdout after importing the module, we defer the evaluation of `sys.stdout` until the last possible opportunity.
- Loading branch information