diff options
author | Adrien Di Mascio <Adrien.DiMascio@logilab.fr> | 2009-01-20 13:35:37 +0100 |
---|---|---|
committer | Adrien Di Mascio <Adrien.DiMascio@logilab.fr> | 2009-01-20 13:35:37 +0100 |
commit | dda3f359d9cd34a08293026f7401893011111138 (patch) | |
tree | 2f72e080467c208c6c6b512f841ffa4b955e0c09 /testlib.py | |
parent | d432b81bdc55e78bd7c681b365af9fcb37610d4b (diff) | |
download | logilab-common-dda3f359d9cd34a08293026f7401893011111138.tar.gz |
use traceback.formation_exception_only to be more error-resistant when displaying fancy tracebacks with unicode strings
Diffstat (limited to 'testlib.py')
-rw-r--r-- | testlib.py | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -409,7 +409,7 @@ class SkipAwareTestResult(unittest._TextTestResult): output.append(' self.%s: %r' % (varname, value)) output.append(' ' + '-' * 66) output.append('') - output.append('%s: %s' % (exctype.__name__, exc)) + output.append(''.join(traceback.format_exception_only(exctype, exc))) return '\n'.join(output) def addError(self, test, err): |