]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
#3912: document default for *places* arg.
authorGeorg Brandl <georg@python.org>
Sun, 21 Sep 2008 07:15:59 +0000 (07:15 +0000)
committerGeorg Brandl <georg@python.org>
Sun, 21 Sep 2008 07:15:59 +0000 (07:15 +0000)
Doc/library/unittest.rst

index 3f4a6ac186af789388e4e458b8aede65f4fc707b..792a98e8c714ee1156f453f88004bbab9fcfa02e 100644 (file)
@@ -595,7 +595,8 @@ failures.
             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 @@ failures.
             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`.