diff options
author | Michael Foord <fuzzyman@voidspace.org.uk> | 2010-11-02 14:27:10 (GMT) |
---|---|---|
committer | Michael Foord <fuzzyman@voidspace.org.uk> | 2010-11-02 14:27:10 (GMT) |
commit | 7a26cb97726ecf8bbc2602f825a6eb1ca5e004ec (patch) | |
tree | 1d50c1945c1b3c643ff23fd0a915e0caaed6fe4d /Doc/library/unittest.rst | |
parent | f74ed2ea4c428ce89f7fa31b300b418ac7d924c5 (diff) | |
download | cpython-7a26cb97726ecf8bbc2602f825a6eb1ca5e004ec.zip cpython-7a26cb97726ecf8bbc2602f825a6eb1ca5e004ec.tar.gz cpython-7a26cb97726ecf8bbc2602f825a6eb1ca5e004ec.tar.bz2 |
Updating unittest docs to reflect change in unittest.TestCase.assert[Not]AlmostEqual signature change
Diffstat (limited to 'Doc/library/unittest.rst')
-rw-r--r-- | Doc/library/unittest.rst | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/Doc/library/unittest.rst b/Doc/library/unittest.rst index 4bcc806..95ab13a 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 |