:meth:`.assertRaisesRegex` assertRaisesRegexp
============================== ====================== ======================
- .. deprecated-removed:: 3.1 3.3
+ .. deprecated:: 3.1
the fail* aliases listed in the second column.
.. deprecated:: 3.2
the assert* aliases listed in the third column.
return original_func(*args, **kwargs)
return deprecated_func
- # The fail* methods can be removed in 3.3, the 5 assert* methods will
- # have to stay around for a few more versions. See #9424.
+ # see #9424
failUnlessEqual = assertEquals = _deprecate(assertEqual)
failIfEqual = assertNotEquals = _deprecate(assertNotEqual)
failUnlessAlmostEqual = assertAlmostEquals = _deprecate(assertAlmostEqual)
_runtime_warn("barz")
def testDeprecatedMethodNames(self):
- """Test that the deprecated methods raise a DeprecationWarning.
-
- The fail* methods will be removed in 3.3. The assert* methods will
- have to stay around for a few more versions. See #9424.
+ """
+ Test that the deprecated methods raise a DeprecationWarning. See #9424.
"""
old = (
(self.failIfEqual, (3, 5)),