2024-01-30 05:54:30 +00:00
|
|
|
Index: unittest-xml-reporting-3.2.0/xmlrunner/result.py
|
2023-02-20 08:51:38 +00:00
|
|
|
===================================================================
|
2024-01-30 05:54:30 +00:00
|
|
|
--- unittest-xml-reporting-3.2.0.orig/xmlrunner/result.py
|
|
|
|
+++ unittest-xml-reporting-3.2.0/xmlrunner/result.py
|
|
|
|
@@ -188,6 +188,9 @@ class _TestInfo(object):
|
2023-02-20 08:51:38 +00:00
|
|
|
"""
|
|
|
|
return self.test_exception_info
|
|
|
|
|
|
|
|
+ def shortDescription(self):
|
|
|
|
+ return self.test_description
|
|
|
|
+
|
|
|
|
|
2024-01-30 05:54:30 +00:00
|
|
|
class _XMLTestResult(TextTestResult):
|
2023-02-20 08:51:38 +00:00
|
|
|
"""
|
2024-01-30 05:54:30 +00:00
|
|
|
@@ -673,3 +676,8 @@ class _XMLTestResult(TextTestResult):
|
2023-02-20 08:51:38 +00:00
|
|
|
def _exc_info_to_string(self, err, test):
|
|
|
|
"""Converts a sys.exc_info()-style tuple of values into a string."""
|
|
|
|
return super(_XMLTestResult, self)._exc_info_to_string(err, test)
|
|
|
|
+
|
|
|
|
+ def getDescription(self, test):
|
|
|
|
+ if isinstance(test, tuple):
|
|
|
|
+ test = test[0]
|
|
|
|
+ return super().getDescription(test)
|