mirror of
https://github.com/tahoe-lafs/tahoe-lafs.git
synced 2024-12-23 23:02:25 +00:00
test_util.py: sigh, one last minor python-2.5 issue
This commit is contained in:
parent
736fbe6ea5
commit
6a6631a92e
@ -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):
|
||||
|
Loading…
Reference in New Issue
Block a user