Show More
@@ -1663,7 +1663,9 b' class TestResult(unittest._TextTestResul' | |||||
1663 | self.stream.write('t') |
|
1663 | self.stream.write('t') | |
1664 | else: |
|
1664 | else: | |
1665 | if not self._options.nodiff: |
|
1665 | if not self._options.nodiff: | |
1666 | formatted = '\nERROR: %s output changed\n' % test |
|
1666 | self.stream.write('\n') | |
|
1667 | # Exclude the '\n' from highlighting to lex correctly | |||
|
1668 | formatted = 'ERROR: %s output changed\n' % test | |||
1667 | self.stream.write(highlightmsg(formatted, self.color)) |
|
1669 | self.stream.write(highlightmsg(formatted, self.color)) | |
1668 | self.stream.write('!') |
|
1670 | self.stream.write('!') | |
1669 |
|
1671 |
@@ -131,6 +131,7 b' test diff colorisation' | |||||
131 | \x1b[38;5;34m+ bar*baz (glob)\x1b[39m (esc) |
|
131 | \x1b[38;5;34m+ bar*baz (glob)\x1b[39m (esc) | |
132 | bar*bad (glob) |
|
132 | bar*bad (glob) | |
133 | \x1b[38;5;124m- bar*baz (glob)\x1b[39m (esc) |
|
133 | \x1b[38;5;124m- bar*baz (glob)\x1b[39m (esc) | |
|
134 | ||||
134 | \x1b[38;5;88mERROR: \x1b[39m\x1b[38;5;9mtest-failure.t\x1b[39m\x1b[38;5;88m output changed\x1b[39m (esc) |
|
135 | \x1b[38;5;88mERROR: \x1b[39m\x1b[38;5;9mtest-failure.t\x1b[39m\x1b[38;5;88m output changed\x1b[39m (esc) | |
135 | ! |
|
136 | ! | |
136 | \x1b[38;5;88mFailed \x1b[39m\x1b[38;5;9mtest-failure.t\x1b[39m\x1b[38;5;88m: output changed\x1b[39m (esc) |
|
137 | \x1b[38;5;88mFailed \x1b[39m\x1b[38;5;9mtest-failure.t\x1b[39m\x1b[38;5;88m: output changed\x1b[39m (esc) |
General Comments 0
You need to be logged in to leave comments.
Login now