From: Michael Foord Date: Tue, 2 Nov 2010 14:27:10 +0000 (+0000) Subject: Updating unittest docs to reflect change in unittest.TestCase.assert[Not]AlmostEqual... X-Git-Tag: v3.2a4~177 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=7a26cb97726ecf8bbc2602f825a6eb1ca5e004ec;p=python Updating unittest docs to reflect change in unittest.TestCase.assert[Not]AlmostEqual signature change --- diff --git a/Doc/library/unittest.rst b/Doc/library/unittest.rst index 4bcc806243..95ab13a205 100644 --- a/Doc/library/unittest.rst +++ b/Doc/library/unittest.rst @@ -818,8 +818,8 @@ Test cases :meth:`failIfEqual`; use :meth:`assertNotEqual`. - .. method:: assertAlmostEqual(first, second, *, places=7, msg=None, delta=None) - failUnlessAlmostEqual(first, second, *, places=7, msg=None, delta=None) + .. method:: assertAlmostEqual(first, second, places=7, msg=None, delta=None) + failUnlessAlmostEqual(first, second, places=7, msg=None, delta=None) Test that *first* and *second* are approximately equal by computing the difference, rounding to the given number of decimal *places* (default 7), @@ -843,8 +843,8 @@ Test cases :meth:`failUnlessAlmostEqual`; use :meth:`assertAlmostEqual`. - .. method:: assertNotAlmostEqual(first, second, *, places=7, msg=None, delta=None) - failIfAlmostEqual(first, second, *, places=7, msg=None, delta=None) + .. method:: assertNotAlmostEqual(first, second, places=7, msg=None, delta=None) + failIfAlmostEqual(first, second, places=7, msg=None, delta=None) Test that *first* and *second* are not approximately equal by computing the difference, rounding to the given number of decimal *places* (default