-
-
Notifications
You must be signed in to change notification settings - Fork 32.1k
bpo-13236: Flush the output stream more often in unittest #29864
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
It can prevent some losses when output to buffered stream.
Would it be better to replace all $ python -h
[...]
-u : force the stdout and stderr streams to be unbuffered;
this option has no effect on stdin; also PYTHONUNBUFFERED=x
[...] |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM.
'-u' only affects Also And it is not only about running Python tests. |
Thanks @serhiy-storchaka for the PR 🌮🎉.. I'm working now to backport this PR to: 3.9, 3.10. |
Sorry, @serhiy-storchaka, I could not cleanly backport this to |
Sorry @serhiy-storchaka, I had trouble checking out the |
…honGH-29864) It can prevent some losses when output to buffered stream.. (cherry picked from commit f42a06b) Co-authored-by: Serhiy Storchaka <[email protected]>
GH-29929 is a backport of this pull request to the 3.10 branch. |
…29864) (GH-29929) It can prevent some losses when output to buffered stream.. (cherry picked from commit f42a06b) Co-authored-by: Serhiy Storchaka <[email protected]>
…honGH-29864) (pythonGH-29929) It can prevent some losses when output to buffered stream.. (cherry picked from commit f42a06b) Co-authored-by: Serhiy Storchaka <[email protected]> (cherry picked from commit 83fa129) Co-authored-by: Serhiy Storchaka <[email protected]>
It can prevent some losses when output to buffered stream.
https://bugs.python.org/issue13236