-
-
Notifications
You must be signed in to change notification settings - Fork 32.4k
bpo-30335: Add deprecation alias entry for assertNotRegexpMatches #1536
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
Changes from 3 commits
b3c9eb6
31a90b2
b53f192
7cf3a6d
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -1170,6 +1170,9 @@ Test cases | |
:meth:`.assertRegex`. | ||
.. versionadded:: 3.2 | ||
:meth:`.assertNotRegex`. | ||
.. versionadded:: 3.5 | ||
The name ``assertNotRegexpMatches`` as 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,17 +1449,19 @@ along with their deprecated aliases: | |
:meth:`.assertAlmostEqual` failUnlessAlmostEqual assertAlmostEquals | ||
:meth:`.assertNotAlmostEqual` failIfAlmostEqual assertNotAlmostEquals | ||
:meth:`.assertRegex` assertRegexpMatches | ||
:meth:`.assertNotRegex` assertNotRegexpMatches | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. The There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Yes, I changed that, after Brett's suggestion, to state it was introduced and deprecated at 3.5. It has to have an entry in this table so people who are porting testing code from 2 to 3 can see the new name for it. |
||
: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: | ||
|
||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
"as a" -> "is a"