summaryrefslogtreecommitdiffstats
path: root/Doc/library/unittest.rst
diff options
context:
space:
mode:
authorMichael Foord <fuzzyman@voidspace.org.uk>2009-09-13 16:40:02 (GMT)
committerMichael Foord <fuzzyman@voidspace.org.uk>2009-09-13 16:40:02 (GMT)
commitc3f79373e89cfe926b6e1f9e2f73dada1cbfff8e (patch)
tree4a11186cdbaef8d375972f162e32bcd2169a73f8 /Doc/library/unittest.rst
parent60931a5a580321b4b225bec9e133ed3998eb7d1a (diff)
downloadcpython-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.rst6
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`.