Skip to content

Commit f634e4c

Browse files
author
georg.brandl
committed
#3912: document default for *places* arg.
git-svn-id: http://svn.python.org/projects/python/trunk@66524 6015fed2-1504-0410-9fe1-9d1591cc4771
1 parent d0f174b commit f634e4c

1 file changed

Lines changed: 4 additions & 2 deletions

File tree

Doc/library/unittest.rst

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -595,7 +595,8 @@ failures.
595595
TestCase.failUnlessAlmostEqual(first, second[, places[, msg]])
596596

597597
Test that *first* and *second* are approximately equal by computing the
598-
difference, rounding to the given number of *places*, and comparing to zero.
598+
difference, rounding to the given number of decimal *places* (default 7),
599+
and comparing to zero.
599600
Note that comparing a given number of decimal places is not the same as
600601
comparing a given number of significant digits. If the values do not compare
601602
equal, the test will fail with the explanation given by *msg*, or :const:`None`.
@@ -605,7 +606,8 @@ failures.
605606
TestCase.failIfAlmostEqual(first, second[, places[, msg]])
606607

607608
Test that *first* and *second* are not approximately equal by computing the
608-
difference, rounding to the given number of *places*, and comparing to zero.
609+
difference, rounding to the given number of decimal *places* (default 7),
610+
and comparing to zero.
609611
Note that comparing a given number of decimal places is not the same as
610612
comparing a given number of significant digits. If the values do not compare
611613
equal, the test will fail with the explanation given by *msg*, or :const:`None`.

0 commit comments

Comments
 (0)