From 85b3a492d68773a661b4e1eb49083e02a39bffa1 Mon Sep 17 00:00:00 2001 From: Victor Stinner Date: Wed, 29 Jun 2011 17:26:38 +0200 Subject: [PATCH] Issue #12400: runtest() truncates the StringIO stream before a new test --- Lib/test/regrtest.py | 1 + 1 file changed, 1 insertion(+) diff --git a/Lib/test/regrtest.py b/Lib/test/regrtest.py index 75d8795aff9..f1ef7156103 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