fix test result reporting
authorStefan Behnel <stefan_ml@behnel.de>
Sun, 21 Apr 2013 06:33:19 +0000 (08:33 +0200)
committerStefan Behnel <stefan_ml@behnel.de>
Sun, 21 Apr 2013 06:33:19 +0000 (08:33 +0200)
Cython/Tests/xmlrunner.py

index 5b963eb..b983691 100644 (file)
@@ -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())