diff options
author | Michael Foord <fuzzyman@voidspace.org.uk> | 2009-09-13 16:40:02 (GMT) |
---|---|---|
committer | Michael Foord <fuzzyman@voidspace.org.uk> | 2009-09-13 16:40:02 (GMT) |
commit | c3f79373e89cfe926b6e1f9e2f73dada1cbfff8e (patch) | |
tree | 4a11186cdbaef8d375972f162e32bcd2169a73f8 /Doc/library/unittest.rst | |
parent | 60931a5a580321b4b225bec9e133ed3998eb7d1a (diff) | |
download | cpython-c3f79373e89cfe926b6e1f9e2f73dada1cbfff8e.zip cpython-c3f79373e89cfe926b6e1f9e2f73dada1cbfff8e.tar.gz cpython-c3f79373e89cfe926b6e1f9e2f73dada1cbfff8e.tar.bz2 |
Objects that compare equal automatically pass or fail assertAlmostEqual and assertNotAlmostEqual tests on unittest.TestCase. Issue 6567.
Diffstat (limited to 'Doc/library/unittest.rst')
-rw-r--r-- | Doc/library/unittest.rst | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/Doc/library/unittest.rst b/Doc/library/unittest.rst index a2d4478..61c4308 100644 --- a/Doc/library/unittest.rst +++ b/Doc/library/unittest.rst @@ -733,6 +733,9 @@ Test cases compare equal, the test will fail with the explanation given by *msg*, or :const:`None`. + .. versionchanged:: 2.7 + Objects that compare equal are automatically almost equal. + .. deprecated:: 2.7 :meth:`failUnlessAlmostEqual`. @@ -749,6 +752,9 @@ Test cases compare equal, the test will fail with the explanation given by *msg*, or :const:`None`. + .. versionchanged:: 2.7 + Objects that compare equal automatically fail. + .. deprecated:: 2.7 :meth:`failIfAlmostEqual`. |