summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlexandre Fayolle <alexandre.fayolle@logilab.fr>2009-01-26 16:37:02 +0100
committerAlexandre Fayolle <alexandre.fayolle@logilab.fr>2009-01-26 16:37:02 +0100
commitd6143b775bacf83c37288c546fcea0762aae7489 (patch)
treea911b57e15ef747e1092933f66e842da7735cf50
parent585584a5a4d78441ef70e1fdd5c2a00190456552 (diff)
downloadlogilab-common-d6143b775bacf83c37288c546fcea0762aae7489.tar.gz
fix assertFloatAlmostEquals to use msg
-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