diff options
author | Alexandre Fayolle <alexandre.fayolle@logilab.fr> | 2009-01-26 16:37:02 +0100 |
---|---|---|
committer | Alexandre Fayolle <alexandre.fayolle@logilab.fr> | 2009-01-26 16:37:02 +0100 |
commit | d6143b775bacf83c37288c546fcea0762aae7489 (patch) | |
tree | a911b57e15ef747e1092933f66e842da7735cf50 | |
parent | 585584a5a4d78441ef70e1fdd5c2a00190456552 (diff) | |
download | logilab-common-d6143b775bacf83c37288c546fcea0762aae7489.tar.gz |
fix assertFloatAlmostEquals to use msg
-rw-r--r-- | testlib.py | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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 |