From 7a26cb97726ecf8bbc2602f825a6eb1ca5e004ec Mon Sep 17 00:00:00 2001 From: Michael Foord Date: Tue, 2 Nov 2010 14:27:10 +0000 Subject: [PATCH] Updating unittest docs to reflect change in unittest.TestCase.assert[Not]AlmostEqual signature change --- Doc/library/unittest.rst | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) 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 -- 2.50.1