From: Stefan Behnel Date: Fri, 5 Mar 2010 14:47:39 +0000 (+0100) Subject: safety fix X-Git-Tag: 0.13.beta0~2^2~102^2~3 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=9ad6182c306937acfb3ec877dff8a72d1b482389;p=cython.git safety fix --- diff --git a/Cython/Tests/xmlrunner.py b/Cython/Tests/xmlrunner.py index f52fb699..3dfedc13 100644 --- a/Cython/Tests/xmlrunner.py +++ b/Cython/Tests/xmlrunner.py @@ -208,7 +208,7 @@ class _XMLTestResult(_TextTestResult): xml_testsuite.appendChild(testcase) 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()) if (test_result.outcome != _TestInfo.SUCCESS):