projects
/
tahoe-lafs
/
tahoe-lafs.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
e74e370
)
test_util.py: fix another minor python-2.5 issue
author
Brian Warner
<warner@allmydata.com>
Sat, 7 Apr 2007 00:12:26 +0000
(17:12 -0700)
committer
Brian Warner
<warner@allmydata.com>
Sat, 7 Apr 2007 00:12:26 +0000
(17:12 -0700)
src/allmydata/test/test_util.py
patch
|
blob
|
history
diff --git
a/src/allmydata/test/test_util.py
b/src/allmydata/test/test_util.py
index 32e976db721c7c99de756106b3ac7485f9f47fda..4e583fa6ed41aa04373976058dda1f4f11bf7119 100644
(file)
--- a/
src/allmydata/test/test_util.py
+++ b/
src/allmydata/test/test_util.py
@@
-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: