From: Brian Warner <warner@allmydata.com>
Date: Tue, 12 Feb 2008 00:37:51 +0000 (-0700)
Subject: test_dirnode.py: improve error messages in case timestamp tests fail
X-Git-Tag: allmydata-tahoe-0.8.0~96
X-Git-Url: https://git.rkrishnan.org/listings/vdrive/...?a=commitdiff_plain;h=5f50543c3b64ec2a78bc84ca3b3ef225c991e1f4;p=tahoe-lafs%2Ftahoe-lafs.git

test_dirnode.py: improve error messages in case timestamp tests fail
---

diff --git a/src/allmydata/test/test_dirnode.py b/src/allmydata/test/test_dirnode.py
index 327e8b9e..2cca9a49 100644
--- a/src/allmydata/test/test_dirnode.py
+++ b/src/allmydata/test/test_dirnode.py
@@ -159,10 +159,10 @@ class Dirnode(unittest.TestCase, testutil.ShouldFailMixin):
         return d
 
     def failUnlessGreaterThan(self, a, b):
-        self.failUnless(a > b, "%s should be > %s" % (a, b))
+        self.failUnless(a > b, "%r should be > %r" % (a, b))
 
     def failUnlessGreaterOrEqualThan(self, a, b):
-        self.failUnless(a >= b, "%s should be >= %s" % (a, b))
+        self.failUnless(a >= b, "%r should be >= %r" % (a, b))
 
     def stall(self, res, delay=1.0):
         d = defer.Deferred()