commit | 85b3a492d68773a661b4e1eb49083e02a39bffa1 | [log] [tgz] |
---|---|---|
author | Victor Stinner <victor.stinner@haypocalc.com> | Wed Jun 29 17:26:38 2011 +0200 |
committer | Victor Stinner <victor.stinner@haypocalc.com> | Wed Jun 29 17:26:38 2011 +0200 |
tree | 60c57c04aee7c7304464941465ddc1c9fdc9554b | |
parent | 125b2ba41e62a207295ae6cae801218aaec675eb [diff] [blame] |
Issue #12400: runtest() truncates the StringIO stream before a new test
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 @@ if runtest.stringio is None: runtest.stringio = io.StringIO() stream = runtest.stringio + stream.truncate(0) orig_stdout = sys.stdout orig_stderr = sys.stderr