diff options
author | Michael Foord <fuzzyman@voidspace.org.uk> | 2010-04-08 04:33:20 (GMT) |
---|---|---|
committer | Michael Foord <fuzzyman@voidspace.org.uk> | 2010-04-08 04:33:20 (GMT) |
commit | efc2f497fdbc31300e99712f44353a8b6f3d4879 (patch) | |
tree | fa17e1f00c433bbca76c263d291208b449f8c67e /Doc | |
parent | 91a2c89288125b9509ce3fa8436f49a029031be4 (diff) | |
download | cpython-efc2f497fdbc31300e99712f44353a8b6f3d4879.zip cpython-efc2f497fdbc31300e99712f44353a8b6f3d4879.tar.gz cpython-efc2f497fdbc31300e99712f44353a8b6f3d4879.tar.bz2 |
Correction of unittest documentation typos and omissions
Diffstat (limited to 'Doc')
-rw-r--r-- | Doc/library/unittest.rst | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/Doc/library/unittest.rst b/Doc/library/unittest.rst index e6542a9..756f1d4 100644 --- a/Doc/library/unittest.rst +++ b/Doc/library/unittest.rst @@ -794,7 +794,7 @@ Test cases .. method:: assertAlmostEqual(first, second[, places[, msg[, delta]]]) - failUnlessAlmostEqual(first, second[, places[, msg]]) + failUnlessAlmostEqual(first, second[, places[, msg[, delta]]]) Test that *first* and *second* are approximately equal by computing the difference, rounding to the given number of decimal *places* (default 7), @@ -819,7 +819,7 @@ Test cases .. method:: assertNotAlmostEqual(first, second[, places[, msg[, delta]]]) - failIfAlmostEqual(first, second[, places[, msg]]) + failIfAlmostEqual(first, second[, places[, msg[, delta]]]) Test that *first* and *second* are not approximately equal by computing the difference, rounding to the given number of decimal *places* (default @@ -1654,7 +1654,7 @@ Loading and running tests ``_makeResult()`` instantiates the class or callable passed in the ``TextTestRunner`` constructor as the ``resultclass`` argument. It - defaults to :class::`TextTestResult` if no ``resultclass`` is provided. + defaults to :class:`TextTestResult` if no ``resultclass`` is provided. The result class is instantiated with the following arguments:: stream, descriptions, verbosity |