From d6143b775bacf83c37288c546fcea0762aae7489 Mon Sep 17 00:00:00 2001 From: Alexandre Fayolle Date: Mon, 26 Jan 2009 16:37:02 +0100 Subject: fix assertFloatAlmostEquals to use msg --- testlib.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 -- cgit v1.2.1