From 9ea47d82e06507610ea7c4a340ce27676bbe1723 Mon Sep 17 00:00:00 2001 From: Stefan Behnel Date: Sat, 13 Mar 2010 07:24:25 +0100 Subject: [PATCH] Py2.3 test fix --- Cython/Tests/xmlrunner.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) 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) -- 2.26.2