diff options
author | Victor Stinner <victor.stinner@haypocalc.com> | 2011-06-29 15:26:38 (GMT) |
---|---|---|
committer | Victor Stinner <victor.stinner@haypocalc.com> | 2011-06-29 15:26:38 (GMT) |
commit | 85b3a492d68773a661b4e1eb49083e02a39bffa1 (patch) | |
tree | 60c57c04aee7c7304464941465ddc1c9fdc9554b | |
parent | 125b2ba41e62a207295ae6cae801218aaec675eb (diff) | |
download | cpython-85b3a492d68773a661b4e1eb49083e02a39bffa1.zip cpython-85b3a492d68773a661b4e1eb49083e02a39bffa1.tar.gz cpython-85b3a492d68773a661b4e1eb49083e02a39bffa1.tar.bz2 |
Issue #12400: runtest() truncates the StringIO stream before a new test
-rwxr-xr-x | Lib/test/regrtest.py | 1 |
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 |