Commit b3de4703 authored by Stefan Behnel's avatar Stefan Behnel

Py2.3 test fix

parent fa4a455d
......@@ -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):
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment