summaryrefslogtreecommitdiffstats
path: root/Lib/test/regrtest.py
diff options
context:
space:
mode:
authorVictor Stinner <victor.stinner@haypocalc.com>2011-06-29 15:29:22 (GMT)
committerVictor Stinner <victor.stinner@haypocalc.com>2011-06-29 15:29:22 (GMT)
commitfa832dea2aaea40c78780a3f7ece48ddf7ddc51a (patch)
tree3b4907256ce886ec92de0aa8a9321a7a58fd017b /Lib/test/regrtest.py
parent68416f0ae55a1ba704a490923b204b3863789a17 (diff)
parent85b3a492d68773a661b4e1eb49083e02a39bffa1 (diff)
downloadcpython-fa832dea2aaea40c78780a3f7ece48ddf7ddc51a.zip
cpython-fa832dea2aaea40c78780a3f7ece48ddf7ddc51a.tar.gz
cpython-fa832dea2aaea40c78780a3f7ece48ddf7ddc51a.tar.bz2
(merge 3.2) Issue #12400: runtest() truncates the StringIO stream before a new
test
Diffstat (limited to 'Lib/test/regrtest.py')
-rwxr-xr-xLib/test/regrtest.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/Lib/test/regrtest.py b/Lib/test/regrtest.py
index 4d13fc7..a82c6ee 100755
--- a/Lib/test/regrtest.py
+++ b/Lib/test/regrtest.py
@@ -847,6 +847,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