Commits

Victor Stinner  committed 7bd2311

Issue #12400: runtest() truncates the StringIO stream before a new test

  • Participants
  • Parent commits fdb98a7
  • Branches 3.2

Comments (0)

Files changed (1)

File Lib/test/regrtest.py

             if runtest.stringio is None:
                 runtest.stringio = io.StringIO()
             stream = runtest.stringio
+            stream.truncate(0)
 
             orig_stdout = sys.stdout
             orig_stderr = sys.stderr