mirror of
https://github.com/python/cpython.git
synced 2025-10-14 18:59:46 +00:00
#11282: merge with 3.2.
This commit is contained in:
commit
b7af620747
3 changed files with 4 additions and 7 deletions
|
@ -1462,7 +1462,7 @@ along with their deprecated aliases:
|
||||||
:meth:`.assertRaisesRegex` assertRaisesRegexp
|
:meth:`.assertRaisesRegex` assertRaisesRegexp
|
||||||
============================== ====================== ======================
|
============================== ====================== ======================
|
||||||
|
|
||||||
.. deprecated-removed:: 3.1 3.3
|
.. deprecated:: 3.1
|
||||||
the fail* aliases listed in the second column.
|
the fail* aliases listed in the second column.
|
||||||
.. deprecated:: 3.2
|
.. deprecated:: 3.2
|
||||||
the assert* aliases listed in the third column.
|
the assert* aliases listed in the third column.
|
||||||
|
|
|
@ -1110,8 +1110,7 @@ class TestCase(object):
|
||||||
return original_func(*args, **kwargs)
|
return original_func(*args, **kwargs)
|
||||||
return deprecated_func
|
return deprecated_func
|
||||||
|
|
||||||
# The fail* methods can be removed in 3.3, the 5 assert* methods will
|
# see #9424
|
||||||
# have to stay around for a few more versions. See #9424.
|
|
||||||
assertEquals = _deprecate(assertEqual)
|
assertEquals = _deprecate(assertEqual)
|
||||||
assertNotEquals = _deprecate(assertNotEqual)
|
assertNotEquals = _deprecate(assertNotEqual)
|
||||||
assertAlmostEquals = _deprecate(assertAlmostEqual)
|
assertAlmostEquals = _deprecate(assertAlmostEqual)
|
||||||
|
|
|
@ -1093,10 +1093,8 @@ test case
|
||||||
_runtime_warn("barz")
|
_runtime_warn("barz")
|
||||||
|
|
||||||
def testDeprecatedMethodNames(self):
|
def testDeprecatedMethodNames(self):
|
||||||
"""Test that the deprecated methods raise a DeprecationWarning.
|
"""
|
||||||
|
Test that the deprecated methods raise a DeprecationWarning. See #9424.
|
||||||
The fail* methods will be removed in 3.3. The assert* methods will
|
|
||||||
have to stay around for a few more versions. See #9424.
|
|
||||||
"""
|
"""
|
||||||
old = (
|
old = (
|
||||||
(self.assertNotEquals, (3, 5)),
|
(self.assertNotEquals, (3, 5)),
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue