mirror of
https://github.com/python/cpython.git
synced 2025-08-04 00:48:58 +00:00
Guido points out that sys.__stdout__ is a bit bucket under IDLE. So keep
the local save/modify/restore of sys.stdout, but add machinery so that regrtest can tell test_support the value of sys.stdout at the time regrtest.main() started, and test_support can pass that out later to anyone who needs a "visible" stdout.
This commit is contained in:
parent
698acf98fd
commit
8dee809410
2 changed files with 13 additions and 1 deletions
|
@ -85,6 +85,7 @@ def main(tests=None, testdir=None, verbose=0, quiet=0, generate=0,
|
|||
|
||||
"""
|
||||
|
||||
test_support.record_original_stdout(sys.stdout)
|
||||
try:
|
||||
opts, args = getopt.getopt(sys.argv[1:], 'hvgqxsrlu:',
|
||||
['help', 'verbose', 'quiet', 'generate',
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue