summaryrefslogtreecommitdiffstats
path: root/Lib/test/regrtest.py
diff options
context:
space:
mode:
authorTim Peters <tim.peters@gmail.com>2001-09-25 20:05:11 (GMT)
committerTim Peters <tim.peters@gmail.com>2001-09-25 20:05:11 (GMT)
commit8dee809410e2d433bb0be5d8a1699736b90db0b5 (patch)
tree896e67b420b872b782084d70b44d957471678139 /Lib/test/regrtest.py
parent698acf98fdafd14b1b5ad380e3c56b31ab33a229 (diff)
downloadcpython-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-xLib/test/regrtest.py1
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',