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
1 changed files with 3 additions and 1 deletions

View File

@ -46,7 +46,9 @@ class HumanReadable(unittest.TestCase):
try: try:
raise RuntimeError("oops") raise RuntimeError("oops")
except Exception, e: 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: try:
raise NoArgumentException raise NoArgumentException
except Exception, e: except Exception, e: