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

index 4e583fa6ed41aa04373976058dda1f4f11bf7119..95db756d298a0667522739b970299380fe5d11e1 100644 (file)
@@ -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):