Commit 9ad6182c authored by Stefan Behnel's avatar Stefan Behnel

safety fix

parent 83656fa5
...@@ -208,7 +208,7 @@ class _XMLTestResult(_TextTestResult): ...@@ -208,7 +208,7 @@ class _XMLTestResult(_TextTestResult):
xml_testsuite.appendChild(testcase) xml_testsuite.appendChild(testcase)
testcase.setAttribute('classname', suite_name) testcase.setAttribute('classname', suite_name)
testcase.setAttribute('name', test_result.test_method.shortDescription()) testcase.setAttribute('name', test_result.test_method.shortDescription() or test_result.test_method._testMethodName)
testcase.setAttribute('time', '%.3f' % test_result.get_elapsed_time()) testcase.setAttribute('time', '%.3f' % test_result.get_elapsed_time())
if (test_result.outcome != _TestInfo.SUCCESS): if (test_result.outcome != _TestInfo.SUCCESS):
......
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