mirror of https://github.com/python/cpython
Issue #12400: runtest() truncates the StringIO stream before a new test
This commit is contained in:
parent
125b2ba41e
commit
85b3a492d6
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue