]> git.rkrishnan.org Git - tahoe-lafs/tahoe-lafs.git/commitdiff
test_util.py: fix another minor python-2.5 issue
authorBrian Warner <warner@allmydata.com>
Sat, 7 Apr 2007 00:12:26 +0000 (17:12 -0700)
committerBrian Warner <warner@allmydata.com>
Sat, 7 Apr 2007 00:12:26 +0000 (17:12 -0700)
src/allmydata/test/test_util.py

index 32e976db721c7c99de756106b3ac7485f9f47fda..4e583fa6ed41aa04373976058dda1f4f11bf7119 100644 (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: