summaryrefslogtreecommitdiffstats
path: root/Lib/test/regrtest.py
diff options
context:
space:
mode:
authorVictor Stinner <victor.stinner@haypocalc.com>2011-06-29 15:26:38 (GMT)
committerVictor Stinner <victor.stinner@haypocalc.com>2011-06-29 15:26:38 (GMT)
commit85b3a492d68773a661b4e1eb49083e02a39bffa1 (patch)
tree60c57c04aee7c7304464941465ddc1c9fdc9554b /Lib/test/regrtest.py
parent125b2ba41e62a207295ae6cae801218aaec675eb (diff)
downloadcpython-85b3a492d68773a661b4e1eb49083e02a39bffa1.zip
cpython-85b3a492d68773a661b4e1eb49083e02a39bffa1.tar.gz
cpython-85b3a492d68773a661b4e1eb49083e02a39bffa1.tar.bz2
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 75d8795..f1ef715 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