Skip to content

Commit

Permalink
Merge pull request #88 from ayust/use-color-properly
Browse files Browse the repository at this point in the history
Only use color highlighted tracebacks in --summary when we should
  • Loading branch information
ayust committed Jun 13, 2012
2 parents c5c2a0b + 7566825 commit 5296aae
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion testify/test_logger.py
Expand Up @@ -205,7 +205,12 @@ def failure(self, result):
self.writeln("")
self.writeln("=" * 72)
self.writeln(self._format_test_method_name(result['method']))
self.writeln(''.join(result['exception_info_pretty']))

if self.use_color:
self.writeln(''.join(result['exception_info_pretty']))
else:
self.writeln(''.join(result['exception_info']))

self.writeln('=' * 72)
self.writeln("")

Expand Down

0 comments on commit 5296aae

Please sign in to comment.