summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJim Fasarakis-Hilliard <d.f.hilliard@gmail.com>2017-06-09 20:27:20 (GMT)
committerMariatta <Mariatta@users.noreply.github.com>2017-06-09 20:27:20 (GMT)
commit74921ed8941fce14c2a53dc7280f43eb01fe4ed8 (patch)
tree66abc48f7386ab0fafbfb7af651529a3a8e6d12e
parentfbfaa6fd57f8dc8a3da808acb8422370fad2f27b (diff)
downloadcpython-74921ed8941fce14c2a53dc7280f43eb01fe4ed8.zip
cpython-74921ed8941fce14c2a53dc7280f43eb01fe4ed8.tar.gz
cpython-74921ed8941fce14c2a53dc7280f43eb01fe4ed8.tar.bz2
bpo-30335: Add deprecation alias entry for assertNotRegexpMatches (GH-1536)
Document that assertNotRegexpMatches is a deprecated alias for assertNotRegex.
-rw-r--r--Doc/library/unittest.rst15
1 files changed, 10 insertions, 5 deletions
diff --git a/Doc/library/unittest.rst b/Doc/library/unittest.rst
index 92e567d..2099bd1 100644
--- a/Doc/library/unittest.rst
+++ b/Doc/library/unittest.rst
@@ -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)
@@ -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\_
@@ -1446,8 +1449,9 @@ 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.
@@ -1455,8 +1459,9 @@ along with their deprecated aliases:
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: