Merge pull request #2571 from ahartoto/master

Ensure final collected line doesn't include artifacts of previous write
This commit is contained in:
Ronny Pfannschmidt 2017-07-13 22:37:33 +02:00 committed by GitHub
commit 3578f4e405
2 changed files with 4 additions and 0 deletions

View File

@ -290,6 +290,9 @@ class TerminalReporter:
if self.isatty: if self.isatty:
if final: if final:
line += " \n" line += " \n"
# Rewrite with empty line so we will not see the artifact of
# previous write
self.rewrite('')
self.rewrite(line, bold=True) self.rewrite(line, bold=True)
else: else:
self.write_line(line) self.write_line(line)

1
changelog/2571.trivial Normal file
View File

@ -0,0 +1 @@
Ensure final collected line doesn't include artifacts of previous write.