From: Victor Stinner Date: Wed, 29 Jun 2011 15:26:38 +0000 (+0200) Subject: Issue #12400: runtest() truncates the StringIO stream before a new test X-Git-Tag: v3.2.1rc2~27 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=85b3a492d68773a661b4e1eb49083e02a39bffa1;p=thirdparty%2FPython%2Fcpython.git Issue #12400: runtest() truncates the StringIO stream before a new test --- diff --git a/Lib/test/regrtest.py b/Lib/test/regrtest.py index 75d8795aff94..f1ef7156103c 100755 --- a/Lib/test/regrtest.py +++ b/Lib/test/regrtest.py @@ -793,6 +793,7 @@ def runtest(test, verbose, quiet, if runtest.stringio is None: runtest.stringio = io.StringIO() stream = runtest.stringio + stream.truncate(0) orig_stdout = sys.stdout orig_stderr = sys.stderr