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:
736fbe6
)
test_util.py: sigh, one last minor python-2.5 issue
author
Brian Warner
<warner@allmydata.com>
Sat, 7 Apr 2007 00:21:25 +0000
(17:21 -0700)
committer
Brian Warner
<warner@allmydata.com>
Sat, 7 Apr 2007 00:21:25 +0000
(17:21 -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 4e583fa6ed41aa04373976058dda1f4f11bf7119..95db756d298a0667522739b970299380fe5d11e1 100644
(file)
--- 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):