From: Stefan Behnel Date: Sat, 13 Mar 2010 06:24:25 +0000 (+0100) Subject: Py2.3 test fix X-Git-Tag: 0.13.beta0~316 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=9ea47d82e06507610ea7c4a340ce27676bbe1723;p=cython.git Py2.3 test fix --- diff --git a/Cython/Tests/xmlrunner.py b/Cython/Tests/xmlrunner.py index 4052fbac..cb037eb4 100644 --- a/Cython/Tests/xmlrunner.py +++ b/Cython/Tests/xmlrunner.py @@ -112,8 +112,8 @@ class _XMLTestResult(_TextTestResult): self.start_time = self.stop_time = 0 if self.showAll: - self.stream.writeln('%s (%.3fs)' % \ - (verbose_str, test_info.get_elapsed_time())) + self.stream.writeln('%.3fs %s' % \ + (test_info.get_elapsed_time(), verbose_str)) elif self.dots: self.stream.write(short_str) self.callback = callback @@ -222,7 +222,7 @@ class _XMLTestResult(_TextTestResult): testcase.appendChild(failure) failure.setAttribute('type', str(test_result.err[0].__name__)) - failure.setAttribute('message', str(test_result.err[1].message)) + failure.setAttribute('message', str(test_result.err[1])) error_info = test_result.get_error_info() failureText = xml_document.createCDATASection(error_info)