diff options
author | Tim Peters <tim.peters@gmail.com> | 2001-09-25 20:05:11 (GMT) |
---|---|---|
committer | Tim Peters <tim.peters@gmail.com> | 2001-09-25 20:05:11 (GMT) |
commit | 8dee809410e2d433bb0be5d8a1699736b90db0b5 (patch) | |
tree | 896e67b420b872b782084d70b44d957471678139 /Lib/test/regrtest.py | |
parent | 698acf98fdafd14b1b5ad380e3c56b31ab33a229 (diff) | |
download | cpython-8dee809410e2d433bb0be5d8a1699736b90db0b5.zip cpython-8dee809410e2d433bb0be5d8a1699736b90db0b5.tar.gz cpython-8dee809410e2d433bb0be5d8a1699736b90db0b5.tar.bz2 |
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.
Diffstat (limited to 'Lib/test/regrtest.py')
-rwxr-xr-x | Lib/test/regrtest.py | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/Lib/test/regrtest.py b/Lib/test/regrtest.py index ab58828..1d12739 100755 --- a/Lib/test/regrtest.py +++ b/Lib/test/regrtest.py @@ -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', |