summaryrefslogtreecommitdiff
path: root/Lib/test
diff options
context:
space:
mode:
authorVictor Stinner <victor.stinner@haypocalc.com>2011-06-29 17:26:38 +0200
committerVictor Stinner <victor.stinner@haypocalc.com>2011-06-29 17:26:38 +0200
commit85b3a492d68773a661b4e1eb49083e02a39bffa1 (patch)
tree60c57c04aee7c7304464941465ddc1c9fdc9554b /Lib/test
parent125b2ba41e62a207295ae6cae801218aaec675eb (diff)
downloadcpython-git-85b3a492d68773a661b4e1eb49083e02a39bffa1.tar.gz
Issue #12400: runtest() truncates the StringIO stream before a new test
Diffstat (limited to 'Lib/test')
-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 75d8795aff..f1ef715610 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