[Python-checkins] r88106 - python/branches/py3k/Doc/whatsnew/3.2.rst

raymond.hettinger python-checkins at python.org
Wed Jan 19 05:24:57 CET 2011


Author: raymond.hettinger
Date: Wed Jan 19 05:24:57 2011
New Revision: 88106

Log:
Improve looks by replacing a bullet list with a table.


Modified:
   python/branches/py3k/Doc/whatsnew/3.2.rst

Modified: python/branches/py3k/Doc/whatsnew/3.2.rst
==============================================================================
--- python/branches/py3k/Doc/whatsnew/3.2.rst	(original)
+++ python/branches/py3k/Doc/whatsnew/3.2.rst	Wed Jan 19 05:24:57 2011
@@ -1303,14 +1303,18 @@
 * To improve consistency, some long-standing method aliases are being
   deprecated in favor of the preferred names:
 
-   - replace :meth:`assert_` with :meth:`.assertTrue`
-   - replace :meth:`assertEquals` with :meth:`.assertEqual`
-   - replace :meth:`assertNotEquals` with :meth:`.assertNotEqual`
-   - replace :meth:`assertAlmostEquals` with :meth:`.assertAlmostEqual`
-   - replace :meth:`assertNotAlmostEquals` with :meth:`.assertNotAlmostEqual`
+   ===============================   ==============================
+   Old Name                          Preferred Name
+   ===============================   ==============================
+   :meth:`assert_`                   :meth:`.assertTrue`
+   :meth:`assertEquals`              :meth:`.assertEqual`
+   :meth:`assertNotEquals`           :meth:`.assertNotEqual`
+   :meth:`assertAlmostEquals`        :meth:`.assertAlmostEqual`
+   :meth:`assertNotAlmostEquals`     :meth:`.assertNotAlmostEqual`
+   ===============================   ==============================
 
   Likewise, the ``TestCase.fail*`` methods deprecated in Python 3.1 are expected
-  to be removed in Python 3.3. See also the :ref:`deprecated-aliases` section in
+  to be removed in Python 3.3.  Also see the :ref:`deprecated-aliases` section in
   the :mod:`unittest` documentation.
 
   (Contributed by Ezio Melotti; :issue:`9424`.)


More information about the Python-checkins mailing list