Skip to content

Commit

Permalink
Merge pull request #89 from mrtyler/mrtyler_derp_put_back_colorless
Browse files Browse the repository at this point in the history
Put back some classes I inadvertently deleted.
  • Loading branch information
mrtyler committed Jun 15, 2012
2 parents afd94ee + 73b0129 commit 712e016
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions testify/test_logger.py
Expand Up @@ -257,4 +257,15 @@ def report_stats(self, test_case_count, **results):
)
self.writeln("(Total test time %.2fs)" % total_test_time)


class ColorlessTextTestLogger(TextTestLogger):
def _colorize(self, message, color=None):
return message


class TestResultGrabberHandler(logging.Handler):
"""Logging handler to store log message during a test run"""
def emit(self, record):
raise Exception(repr(record))

# vim: set ts=4 sts=4 sw=4 et:

0 comments on commit 712e016

Please sign in to comment.