Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit c1dfa2e

Browse files
committed
Improve looks by replacing a bullet list with a table.
1 parent 4bea978 commit c1dfa2e

1 file changed

Lines changed: 10 additions & 6 deletions

File tree

Doc/whatsnew/3.2.rst

Lines changed: 10 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1303,14 +1303,18 @@ names.
13031303
* To improve consistency, some long-standing method aliases are being
13041304
deprecated in favor of the preferred names:
13051305

1306-
- replace :meth:`assert_` with :meth:`.assertTrue`
1307-
- replace :meth:`assertEquals` with :meth:`.assertEqual`
1308-
- replace :meth:`assertNotEquals` with :meth:`.assertNotEqual`
1309-
- replace :meth:`assertAlmostEquals` with :meth:`.assertAlmostEqual`
1310-
- replace :meth:`assertNotAlmostEquals` with :meth:`.assertNotAlmostEqual`
1306+
=============================== ==============================
1307+
Old Name Preferred Name
1308+
=============================== ==============================
1309+
:meth:`assert_` :meth:`.assertTrue`
1310+
:meth:`assertEquals` :meth:`.assertEqual`
1311+
:meth:`assertNotEquals` :meth:`.assertNotEqual`
1312+
:meth:`assertAlmostEquals` :meth:`.assertAlmostEqual`
1313+
:meth:`assertNotAlmostEquals` :meth:`.assertNotAlmostEqual`
1314+
=============================== ==============================
13111315

13121316
Likewise, the ``TestCase.fail*`` methods deprecated in Python 3.1 are expected
1313-
to be removed in Python 3.3. See also the :ref:`deprecated-aliases` section in
1317+
to be removed in Python 3.3. Also see the :ref:`deprecated-aliases` section in
13141318
the :mod:`unittest` documentation.
13151319

13161320
(Contributed by Ezio Melotti; :issue:`9424`.)

0 commit comments

Comments
 (0)