mirror of
https://github.com/tahoe-lafs/tahoe-lafs.git
synced 2024-12-20 05:28:04 +00:00
test_util.py: fix another minor python-2.5 issue
This commit is contained in:
parent
e74e370d00
commit
736fbe6ea5
@ -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:
|
||||
|
Loading…
Reference in New Issue
Block a user