Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
home:smarty12:Python
python-unittest-xml-reporting
python-311.patch
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File python-311.patch of Package python-unittest-xml-reporting
Index: unittest-xml-reporting-3.2.0/xmlrunner/result.py =================================================================== --- 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): """ return self.test_exception_info + def shortDescription(self): + return self.test_description + class _XMLTestResult(TextTestResult): """ @@ -673,3 +676,8 @@ class _XMLTestResult(TextTestResult): 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)
Locations
Projects
Search
Status Monitor
Help
OpenBuildService.org
Documentation
API Documentation
Code of Conduct
Contact
Support
@OBShq
Terms
openSUSE Build Service is sponsored by
The Open Build Service is an
openSUSE project
.
Sign Up
Log In
Places
Places
All Projects
Status Monitor