test_util.py: fix another minor python-2.5 issue

This commit is contained in:
Brian Warner 2007-04-06 17:12:26 -07:00
parent e74e370d00
commit 736fbe6ea5

View File

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