]> granicus.if.org Git - python/commitdiff
Correction of unittest documentation typos and omissions
authorMichael Foord <fuzzyman@voidspace.org.uk>
Thu, 8 Apr 2010 04:33:20 +0000 (04:33 +0000)
committerMichael Foord <fuzzyman@voidspace.org.uk>
Thu, 8 Apr 2010 04:33:20 +0000 (04:33 +0000)
Doc/library/unittest.rst

index e6542a9a9ad2bdca089eb80d4cc49028f902b513..756f1d448d2aff1730cd6a1c7561891998221174 100644 (file)
@@ -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