mirror of
https://github.com/python/cpython.git
synced 2025-09-30 12:21:51 +00:00
[3.6] bpo-30335: Add deprecation alias entry for assertNotRegexpMatches (GH-1536) (GH-2055)
Document that assertNotRegexpMatches is a deprecated alias for assertNotRegex.
(cherry picked from commit 74921ed894
)
This commit is contained in:
parent
fe796efa66
commit
10c9a09ef4
1 changed files with 10 additions and 5 deletions
|
@ -1170,6 +1170,9 @@ Test cases
|
||||||
:meth:`.assertRegex`.
|
:meth:`.assertRegex`.
|
||||||
.. versionadded:: 3.2
|
.. versionadded:: 3.2
|
||||||
:meth:`.assertNotRegex`.
|
:meth:`.assertNotRegex`.
|
||||||
|
.. versionadded:: 3.5
|
||||||
|
The name ``assertNotRegexpMatches`` is a deprecated alias
|
||||||
|
for :meth:`.assertNotRegex`.
|
||||||
|
|
||||||
|
|
||||||
.. method:: assertCountEqual(first, second, msg=None)
|
.. method:: assertCountEqual(first, second, msg=None)
|
||||||
|
@ -1435,9 +1438,9 @@ For historical reasons, some of the :class:`TestCase` methods had one or more
|
||||||
aliases that are now deprecated. The following table lists the correct names
|
aliases that are now deprecated. The following table lists the correct names
|
||||||
along with their deprecated aliases:
|
along with their deprecated aliases:
|
||||||
|
|
||||||
============================== ====================== ======================
|
============================== ====================== =======================
|
||||||
Method Name Deprecated alias Deprecated alias
|
Method Name Deprecated alias Deprecated alias
|
||||||
============================== ====================== ======================
|
============================== ====================== =======================
|
||||||
:meth:`.assertEqual` failUnlessEqual assertEquals
|
:meth:`.assertEqual` failUnlessEqual assertEquals
|
||||||
:meth:`.assertNotEqual` failIfEqual assertNotEquals
|
:meth:`.assertNotEqual` failIfEqual assertNotEquals
|
||||||
:meth:`.assertTrue` failUnless assert\_
|
:meth:`.assertTrue` failUnless assert\_
|
||||||
|
@ -1446,8 +1449,9 @@ along with their deprecated aliases:
|
||||||
:meth:`.assertAlmostEqual` failUnlessAlmostEqual assertAlmostEquals
|
:meth:`.assertAlmostEqual` failUnlessAlmostEqual assertAlmostEquals
|
||||||
:meth:`.assertNotAlmostEqual` failIfAlmostEqual assertNotAlmostEquals
|
:meth:`.assertNotAlmostEqual` failIfAlmostEqual assertNotAlmostEquals
|
||||||
:meth:`.assertRegex` assertRegexpMatches
|
:meth:`.assertRegex` assertRegexpMatches
|
||||||
|
:meth:`.assertNotRegex` assertNotRegexpMatches
|
||||||
:meth:`.assertRaisesRegex` assertRaisesRegexp
|
:meth:`.assertRaisesRegex` assertRaisesRegexp
|
||||||
============================== ====================== ======================
|
============================== ====================== =======================
|
||||||
|
|
||||||
.. deprecated:: 3.1
|
.. deprecated:: 3.1
|
||||||
the fail* aliases listed in the second column.
|
the fail* aliases listed in the second column.
|
||||||
|
@ -1455,8 +1459,9 @@ along with their deprecated aliases:
|
||||||
the assert* aliases listed in the third column.
|
the assert* aliases listed in the third column.
|
||||||
.. deprecated:: 3.2
|
.. deprecated:: 3.2
|
||||||
``assertRegexpMatches`` and ``assertRaisesRegexp`` have been renamed to
|
``assertRegexpMatches`` and ``assertRaisesRegexp`` have been renamed to
|
||||||
:meth:`.assertRegex` and :meth:`.assertRaisesRegex`
|
:meth:`.assertRegex` and :meth:`.assertRaisesRegex`.
|
||||||
|
.. deprecated:: 3.5
|
||||||
|
the ``assertNotRegexpMatches`` name in favor of :meth:`.assertNotRegex`.
|
||||||
|
|
||||||
.. _testsuite-objects:
|
.. _testsuite-objects:
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue