summaryrefslogtreecommitdiffstats
path: root/Doc/whatsnew/3.2.rst
diff options
context:
space:
mode:
authorEzio Melotti <ezio.melotti@gmail.com>2010-11-22 12:56:58 (GMT)
committerEzio Melotti <ezio.melotti@gmail.com>2010-11-22 12:56:58 (GMT)
commit2baf1a69f4d72e2107b0941a625fd7603f45ae38 (patch)
treecbd05dd5996a313b0cb813e2d8d01819b6154244 /Doc/whatsnew/3.2.rst
parent60fafa276cefc677839927a0647c8bda3703be0b (diff)
downloadcpython-2baf1a69f4d72e2107b0941a625fd7603f45ae38.zip
cpython-2baf1a69f4d72e2107b0941a625fd7603f45ae38.tar.gz
cpython-2baf1a69f4d72e2107b0941a625fd7603f45ae38.tar.bz2
#9424: add a DeprecationWarning for assertEquals, assertNotEquals, assertAlmostEquals, assertNotAlmostEquals, and assert_
Diffstat (limited to 'Doc/whatsnew/3.2.rst')
-rw-r--r--Doc/whatsnew/3.2.rst12
1 files changed, 12 insertions, 0 deletions
diff --git a/Doc/whatsnew/3.2.rst b/Doc/whatsnew/3.2.rst
index dd47129..c4b5125 100644
--- a/Doc/whatsnew/3.2.rst
+++ b/Doc/whatsnew/3.2.rst
@@ -506,6 +506,18 @@ New, Improved, and Deprecated Modules
with self.assertWarns(DeprecationWarning):
legacy_function('XYZ')
+* The following :class:`unittest.TestCase` methods are now deprecated:
+ * :meth:`assert_` (use :meth:`.assertTrue` instead);
+ * :meth:`assertEquals` (use :meth:`.assertEqual` instead);
+ * :meth:`assertNotEquals` (use :meth:`.assertNotEqual` instead);
+ * :meth:`assertAlmostEquals` (use :meth:`.assertAlmostEqual` instead);
+ * :meth:`assertNotAlmostEquals` (use :meth:`.assertNotAlmostEqual` instead);
+
+ The ``TestCase.fail*`` methods deprecated in Python 3.1 will be removed in
+ Python 3.3. See also the :ref:`deprecated-aliases` section in the
+ :mod:`unittest` documentation.
+
+ (Contributed by Ezio Melotti; :issue:`9424`.)
* The previously deprecated :func:`string.maketrans` function has been removed
in favor of the static methods, :meth:`bytes.maketrans` and