summaryrefslogtreecommitdiffstats
path: root/Doc
diff options
context:
space:
mode:
authorGeorg Brandl <georg@python.org>2008-09-21 07:15:59 (GMT)
committerGeorg Brandl <georg@python.org>2008-09-21 07:15:59 (GMT)
commit4517323df82fb7fd6e8e30d9c6de3caa97f82e40 (patch)
treef9eec060f9bc2d9c169e6e5413bfd2ecdc40ffaa /Doc
parent2f3bd8364a754e3d11fb6e942852a99c628a0489 (diff)
downloadcpython-4517323df82fb7fd6e8e30d9c6de3caa97f82e40.zip
cpython-4517323df82fb7fd6e8e30d9c6de3caa97f82e40.tar.gz
cpython-4517323df82fb7fd6e8e30d9c6de3caa97f82e40.tar.bz2
#3912: document default for *places* arg.
Diffstat (limited to 'Doc')
-rw-r--r--Doc/library/unittest.rst6
1 files changed, 4 insertions, 2 deletions
diff --git a/Doc/library/unittest.rst b/Doc/library/unittest.rst
index 3f4a6ac..792a98e 100644
--- a/Doc/library/unittest.rst
+++ b/Doc/library/unittest.rst
@@ -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`.