summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorStephanie Marcu <stephanie.marcu@logilab.fr>2008-11-18 14:17:29 +0100
committerStephanie Marcu <stephanie.marcu@logilab.fr>2008-11-18 14:17:29 +0100
commite636450f9123d7c328f79cc1a12be22c6ba67725 (patch)
tree984b01762f95b413e516a1cb35377879c1a551ee
parent8eefcf50468679bc654a6aadc765c5f6dbf0a4c9 (diff)
downloadlogilab-common-e636450f9123d7c328f79cc1a12be22c6ba67725.tar.gz
rename assertFloatEquals in assertFloatAlmostEquals
-rw-r--r--testlib.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/testlib.py b/testlib.py
index 7f4e9d2..4271839 100644
--- a/testlib.py
+++ b/testlib.py
@@ -1594,7 +1594,7 @@ succeeded test into", osp.join(os.getcwd(),FILE_RESTART)
msg = "unexpected reference to None"
self.assert_( obj is not None, msg )
- def assertFloatEquals(self, obj, other, prec=1e-5, msg=None):
+ def assertFloatAlmostEquals(self, obj, other, prec=1e-5, msg=None):
"""compares two floats"""
if msg is None:
msg = "%r != %r" % (obj, other)