mirror of
https://github.com/python/cpython.git
synced 2025-08-03 00:23:06 +00:00
Objects that compare equal automatically pass or fail assertAlmostEqual and assertNotAlmostEqual tests on unittest.TestCase. Issue 6567.
This commit is contained in:
parent
60931a5a58
commit
c3f79373e8
4 changed files with 24 additions and 1 deletions
|
@ -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`.
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue