[3.5] bpo-30335: Add deprecation alias entry for assertNotRegexpMatch… · python/cpython@cabdba2 (original) (raw)

`@@ -1170,6 +1170,9 @@ Test cases

`

1170

1170

`` :meth:.assertRegex.

``

1171

1171

` .. versionadded:: 3.2

`

1172

1172

`` :meth:.assertNotRegex.

``

``

1173

`+

.. versionadded:: 3.5

`

``

1174


 The name ``assertNotRegexpMatches`` is a deprecated alias

``

1175

`` +

for :meth:.assertNotRegex.

``

1173

1176

``

1174

1177

``

1175

1178

` .. method:: assertCountEqual(first, second, msg=None)

`

`` @@ -1435,9 +1438,9 @@ For historical reasons, some of the :class:TestCase methods had one or more

``

1435

1438

`aliases that are now deprecated. The following table lists the correct names

`

1436

1439

`along with their deprecated aliases:

`

1437

1440

``

1438

``

`-

============================== ====================== ======================

`

``

1441

`+

============================== ====================== =======================

`

1439

1442

` Method Name Deprecated alias Deprecated alias

`

1440

``

`-

============================== ====================== ======================

`

``

1443

`+

============================== ====================== =======================

`

1441

1444

`` :meth:.assertEqual failUnlessEqual assertEquals

``

1442

1445

`` :meth:.assertNotEqual failIfEqual assertNotEquals

``

1443

1446

`` :meth:.assertTrue failUnless assert_

``

`@@ -1446,17 +1449,19 @@ along with their deprecated aliases:

`

1446

1449

`` :meth:.assertAlmostEqual failUnlessAlmostEqual assertAlmostEquals

``

1447

1450

`` :meth:.assertNotAlmostEqual failIfAlmostEqual assertNotAlmostEquals

``

1448

1451

`` :meth:.assertRegex assertRegexpMatches

``

``

1452

`` +

:meth:.assertNotRegex assertNotRegexpMatches

``

1449

1453

`` :meth:.assertRaisesRegex assertRaisesRegexp

``

1450

``

`-

============================== ====================== ======================

`

``

1454

`+

============================== ====================== =======================

`

1451

1455

``

1452

1456

` .. deprecated:: 3.1

`

1453

1457

` the fail* aliases listed in the second column.

`

1454

1458

` .. deprecated:: 3.2

`

1455

1459

` the assert* aliases listed in the third column.

`

1456

1460

` .. deprecated:: 3.2

`

1457

1461

``` assertRegexpMatches and assertRaisesRegexp have been renamed to


`1458`

``

`` -

:meth:`.assertRegex` and :meth:`.assertRaisesRegex`

``

`1459`

``

`-`

``

`1462`

`` +

:meth:`.assertRegex` and :meth:`.assertRaisesRegex`.

``

``

`1463`

`+

.. deprecated:: 3.5

`

``

`1464`

``` +

the ``assertNotRegexpMatches`` name in favor of :meth:`.assertNotRegex`.

1460

1465

``

1461

1466

`.. _testsuite-objects:

`

1462

1467

``