[Python-checkins] cpython (merge 3.2 -> default): (merge 3.2) Issue #12400: runtest() truncates the StringIO stream before a new

victor.stinner python-checkins at python.org
Wed Jun 29 17:30:20 CEST 2011


http://hg.python.org/cpython/rev/fc831c49216d
changeset:   71077:fc831c49216d
parent:      71075:37877d19c2c9
parent:      71076:7bd23115b6c4
user:        Victor Stinner <victor.stinner at haypocalc.com>
date:        Wed Jun 29 17:29:22 2011 +0200
summary:
  (merge 3.2) Issue #12400: runtest() truncates the StringIO stream before a new
test

files:
  Lib/test/regrtest.py |  1 +
  1 files changed, 1 insertions(+), 0 deletions(-)


diff --git a/Lib/test/regrtest.py b/Lib/test/regrtest.py
--- a/Lib/test/regrtest.py
+++ b/Lib/test/regrtest.py
@@ -847,6 +847,7 @@
             if runtest.stringio is None:
                 runtest.stringio = io.StringIO()
             stream = runtest.stringio
+            stream.truncate(0)
 
             orig_stdout = sys.stdout
             orig_stderr = sys.stderr

-- 
Repository URL: http://hg.python.org/cpython


More information about the Python-checkins mailing list