From b3de470397626ca68abac7be5b1f2ff175ce3d73 Mon Sep 17 00:00:00 2001 From: Stefan Behnel Date: Sat, 13 Mar 2010 07:19:09 +0100 Subject: [PATCH] Py2.3 test fix --- Cython/Tests/xmlrunner.py | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/Cython/Tests/xmlrunner.py b/Cython/Tests/xmlrunner.py index a2054fc1..4052fbac 100644 --- a/Cython/Tests/xmlrunner.py +++ b/Cython/Tests/xmlrunner.py @@ -76,8 +76,11 @@ class _TestInfo(object): """ if not self.err: return '' - return self.test_result._exc_info_to_string(self.err, \ - self.test_method) + if sys.version_info < (2,4): + return self.test_result._exc_info_to_string(self.err) + else: + return self.test_result._exc_info_to_string( + self.err, self.test_method) class _XMLTestResult(_TextTestResult): -- 2.26.2