summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSylvain <syt@logilab.fr>2009-01-26 18:44:32 +0100
committerSylvain <syt@logilab.fr>2009-01-26 18:44:32 +0100
commite7d8ea8f93cff2ae4753bbfc420a0d729190c8a2 (patch)
treea37219cad8ae0a3053a9a77091d4a9a6e4076e4e
parente79c46b07600d2771047258480379a6120dcea00 (diff)
parentd6143b775bacf83c37288c546fcea0762aae7489 (diff)
downloadlogilab-common-e7d8ea8f93cff2ae4753bbfc420a0d729190c8a2.tar.gz
merge
-rw-r--r--testlib.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/testlib.py b/testlib.py
index 55c809b..691c938 100644
--- a/testlib.py
+++ b/testlib.py
@@ -1623,7 +1623,7 @@ succeeded test into", osp.join(os.getcwd(),FILE_RESTART)
"""compares two floats"""
if msg is None:
msg = "%r != %r" % (obj, other)
- self.assert_(math.fabs(obj - other) < prec)
+ self.assert_(math.fabs(obj - other) < prec, msg)
def failUnlessRaises(self, excClass, callableObj, *args, **kwargs):
"""override default failUnlessRaise method to return the raised