[Python-checkins] r66524 - python/trunk/Doc/library/unittest.rst
georg.brandl
python-checkins at python.org
Sun Sep 21 09:16:00 CEST 2008
Author: georg.brandl
Date: Sun Sep 21 09:15:59 2008
New Revision: 66524
Log:
#3912: document default for *places* arg.
Modified:
python/trunk/Doc/library/unittest.rst
Modified: python/trunk/Doc/library/unittest.rst
==============================================================================
--- python/trunk/Doc/library/unittest.rst (original)
+++ python/trunk/Doc/library/unittest.rst Sun Sep 21 09:15:59 2008
@@ -595,7 +595,8 @@
TestCase.failUnlessAlmostEqual(first, second[, places[, msg]])
Test that *first* and *second* are approximately equal by computing the
- difference, rounding to the given number of *places*, and comparing to zero.
+ difference, rounding to the given number of decimal *places* (default 7),
+ and comparing to zero.
Note that comparing a given number of decimal places is not the same as
comparing a given number of significant digits. If the values do not compare
equal, the test will fail with the explanation given by *msg*, or :const:`None`.
@@ -605,7 +606,8 @@
TestCase.failIfAlmostEqual(first, second[, places[, msg]])
Test that *first* and *second* are not approximately equal by computing the
- difference, rounding to the given number of *places*, and comparing to zero.
+ difference, rounding to the given number of decimal *places* (default 7),
+ and comparing to zero.
Note that comparing a given number of decimal places is not the same as
comparing a given number of significant digits. If the values do not compare
equal, the test will fail with the explanation given by *msg*, or :const:`None`.
More information about the Python-checkins
mailing list