10000 [3.6] bpo-30335: Add deprecation alias entry for assertNotRegexpMatch… by Mariatta · Pull Request #2055 · python/cpython · GitHub
[go: up one dir, main page]

Skip to content

[3.6] bpo-30335: Add deprecation alias entry for assertNotRegexpMatch… #2055

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Jun 10, 2017
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
8000
Diff view
15 changes: 10 additions & 5 deletions Doc/library/unittest.rst
Original file line number Diff line number Diff line change
Expand Up @@ -1170,6 +1170,9 @@ Test cases
:meth:`.assertRegex`.
.. versionadded:: 3.2
:meth:`.assertNotRegex`.
.. versionadded:: 3.5
The name ``assertNotRegexpMatches`` is a deprecated alias
for :meth:`.assertNotRegex`.


.. method:: assertCountEqual(first, second, msg=None)
Expand Down Expand Up @@ -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
along with their deprecated aliases:

============================== ====================== ======================
============================== ====================== =======================
Method Name Deprecated alias Deprecated alias
============================== ====================== ======================
============================== ====================== =======================
:meth:`.assertEqual` failUnlessEqual assertEquals
:meth:`.assertNotEqual` failIfEqual assertNotEquals
:meth:`.assertTrue` failUnless assert\_
Expand All @@ -1446,17 +1449,19 @@ along with their deprecated aliases:
:meth:`.assertAlmostEqual` failUnlessAlmostEqual assertAlmostEquals
:meth:`.assertNotAlmostEqual` failIfAlmostEqual assertNotAlmostEquals
:meth:`.assertRegex` assertRegexpMatches
:meth:`.assertNotRegex` assertNotRegexpMatches
:meth:`.assertRaisesRegex` assertRaisesRegexp
============================== ====================== ======================
============================== ====================== =======================

.. deprecated:: 3.1
the fail* aliases listed in the second column.
.. deprecated:: 3.2
the assert* aliases listed in the third column.
.. deprecated:: 3.2
``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:

Expand Down
0