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

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


http://hg.python.org/cpython/rev/7bd23115b6c4
changeset: 71076:7bd23115b6c4
branch: 3.2
parent: 71074:fdb98a7ef9be
user: Victor Stinner <victor.stinner at haypocalc.com>
date: Wed Jun 29 17:26:38 2011 +0200
summary:
 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
@@ -793,6 +793,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

AltStyle によって変換されたページ (->オリジナル) /