Objects that compare equal automatically pass or fail assertAlmostEqual and assertNotAlmostEqual tests on unittest.TestCase. Issue 6567.

This commit is contained in:
Michael Foord 2009-09-13 16:40:02 +00:00
parent 60931a5a58
commit c3f79373e8
4 changed files with 24 additions and 1 deletions

View file

@ -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`.