From 9ad6182c306937acfb3ec877dff8a72d1b482389 Mon Sep 17 00:00:00 2001 From: Stefan Behnel Date: Fri, 5 Mar 2010 15:47:39 +0100 Subject: [PATCH] safety fix --- Cython/Tests/xmlrunner.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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): -- 2.26.2