Commit da9fceaf authored by Sylvain's avatar Sylvain
Browse files

merge

...@@ -1623,7 +1623,7 @@ succeeded test into", osp.join(os.getcwd(),FILE_RESTART) ...@@ -1623,7 +1623,7 @@ succeeded test into", osp.join(os.getcwd(),FILE_RESTART)
"""compares two floats""" """compares two floats"""
if msg is None: if msg is None:
msg = "%r != %r" % (obj, other) 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): def failUnlessRaises(self, excClass, callableObj, *args, **kwargs):
"""override default failUnlessRaise method to return the raised """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