test_util.py: sigh, one last minor python-2.5 issue

This commit is contained in:
Brian Warner 2007-04-06 17:21:25 -07:00
parent 736fbe6ea5
commit 6a6631a92e

View File

@ -48,11 +48,13 @@ class HumanReadable(unittest.TestCase):
except Exception, e:
self.failUnless(
hr(e) == "<RuntimeError: 'oops'>" # python-2.4
or hr(e) == "<RuntimeError('oops',)") # python-2.5
or hr(e) == "RuntimeError('oops',)") # python-2.5
try:
raise NoArgumentException
except Exception, e:
self.failUnlessEqual(hr(e), "<NoArgumentException>")
self.failUnless(
hr(e) == "<NoArgumentException>" # python-2.4
or hr(e) == "NoArgumentException()") # python-2.5
class MyList(list):