Commit 255f319b authored by Stefan Behnel's avatar Stefan Behnel

trial test fix for Py2.7

parent c1c3b956
...@@ -155,12 +155,16 @@ class _XMLTestResult(_TextTestResult): ...@@ -155,12 +155,16 @@ class _XMLTestResult(_TextTestResult):
"Write some information about the FAIL or ERROR to the stream." "Write some information about the FAIL or ERROR to the stream."
for test_info in errors: for test_info in errors:
self.stream.writeln(self.separator1) self.stream.writeln(self.separator1)
self.stream.writeln('%s [%.3fs]: %s' % \ if isinstance(test_info, _TestInfo):
(flavour, test_info.get_elapsed_time(), \ self.stream.writeln('%s [%.3fs]: %s' % \
test_info.get_description())) (flavour, test_info.get_elapsed_time(), \
self.stream.writeln(self.separator2) test_info.get_description()))
self.stream.writeln('%s' % test_info.get_error_info()) self.stream.writeln(self.separator2)
self.stream.writeln('%s' % test_info.get_error_info())
else:
self.stream.writeln(str(test_info))
self.stream.writeln(self.separator2)
def _get_info_by_testcase(self): def _get_info_by_testcase(self):
"""This method organizes test results by TestCase module. This """This method organizes test results by TestCase module. This
information is used during the report generation, where a XML report information is used during the report generation, where a XML report
......
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