Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 5 additions & 1 deletion HTMLTestRunner.py
Original file line number Diff line number Diff line change
Expand Up @@ -566,7 +566,11 @@ def complete_output(self):
sys.stderr = self.stderr0
self.stdout0 = None
self.stderr0 = None
return self.outputBuffer.getvalue()
# close the buffer on each disconnection, so it won't append indefinitely
output = self.outputBuffer.getvalue()
self.outputBuffer.close()
self.outputBuffer = StringIO.StringIO()
return output


def stopTest(self, test):
Expand Down