Commit 517fc887 authored by Stefan Behnel's avatar Stefan Behnel

fix test result reporting

parent 719e6816
......@@ -182,9 +182,11 @@ class _XMLTestResult(_TextTestResult):
def printErrorList(self, flavour, errors):
"Write some information about the FAIL or ERROR to the stream."
for test_info in errors:
if isinstance(test_info, tuple):
test_info, exc_info = test_info
self.stream.writeln(self.separator1)
self.stream.writeln('%s [%.3fs]: %s' % \
(flavour, test_info.get_elapsed_time(), \
self.stream.writeln('%s [%.3fs]: %s' % (
flavour, test_info.get_elapsed_time(),
test_info.get_description()))
self.stream.writeln(self.separator2)
self.stream.writeln('%s' % test_info.get_error_info())
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment