Commit e7cd897f authored by Alexandre Fayolle's avatar Alexandre Fayolle
Browse files

fix assertFloatAlmostEquals to use msg

parent b536b7b76c29
......@@ -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
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment