From: Brian Warner <warner@allmydata.com>
Date: Sat, 7 Apr 2007 00:21:25 +0000 (-0700)
Subject: test_util.py: sigh, one last minor python-2.5 issue
X-Git-Url: https://git.rkrishnan.org/components/com_hotproperty/simplejson/statistics?a=commitdiff_plain;h=6a6631a92ecd429fa56703d716a746408bcb74d5;p=tahoe-lafs%2Ftahoe-lafs.git

test_util.py: sigh, one last minor python-2.5 issue
---

diff --git a/src/allmydata/test/test_util.py b/src/allmydata/test/test_util.py
index 4e583fa6..95db756d 100644
--- a/src/allmydata/test/test_util.py
+++ b/src/allmydata/test/test_util.py
@@ -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):