diff options
author | Tim Peters <tim.peters@gmail.com> | 2001-09-25 19:13:20 (GMT) |
---|---|---|
committer | Tim Peters <tim.peters@gmail.com> | 2001-09-25 19:13:20 (GMT) |
commit | 342ca75d9552ff5c606c465d1392a32e44257fe5 (patch) | |
tree | 5d063062146708903e0911efdfe3da2a5412c31b /Lib/test/regrtest.py | |
parent | 5055545fc06adcaa0cdeed69b317f917d9651749 (diff) | |
download | cpython-342ca75d9552ff5c606c465d1392a32e44257fe5.zip cpython-342ca75d9552ff5c606c465d1392a32e44257fe5.tar.gz cpython-342ca75d9552ff5c606c465d1392a32e44257fe5.tar.bz2 |
Get rid of the increasingly convoluted global tricks w/ sys.stdout, in
favor of local save/modify/restore. The test suite should run fine again.
Diffstat (limited to 'Lib/test/regrtest.py')
-rwxr-xr-x | Lib/test/regrtest.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Lib/test/regrtest.py b/Lib/test/regrtest.py index d13ff4c..ab58828 100755 --- a/Lib/test/regrtest.py +++ b/Lib/test/regrtest.py @@ -287,7 +287,7 @@ def runtest(test, generate, verbose, quiet, testdir = None): else: cfp = StringIO.StringIO() try: - sys.save_stdout = sys.stdout + save_stdout = sys.stdout try: if cfp: sys.stdout = cfp @@ -301,7 +301,7 @@ def runtest(test, generate, verbose, quiet, testdir = None): if indirect_test is not None: indirect_test() finally: - sys.stdout = sys.save_stdout + sys.stdout = save_stdout except (ImportError, test_support.TestSkipped), msg: if not quiet: print "test", test, "skipped --", msg |