Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 361467e

Browse files
author
Ezio Melotti
committed
#11282: the fail* methods will stay around a few more versions.
1 parent 9481e41 commit 361467e

3 files changed

Lines changed: 4 additions & 7 deletions

File tree

Doc/library/unittest.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1459,7 +1459,7 @@ along with their deprecated aliases:
14591459
:meth:`.assertRaisesRegex` assertRaisesRegexp
14601460
============================== ====================== ======================
14611461

1462-
.. deprecated-removed:: 3.1 3.3
1462+
.. deprecated:: 3.1
14631463
the fail* aliases listed in the second column.
14641464
.. deprecated:: 3.2
14651465
the assert* aliases listed in the third column.

Lib/unittest/case.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1181,8 +1181,7 @@ def deprecated_func(*args, **kwargs):
11811181
return original_func(*args, **kwargs)
11821182
return deprecated_func
11831183

1184-
# The fail* methods can be removed in 3.3, the 5 assert* methods will
1185-
# have to stay around for a few more versions. See #9424.
1184+
# see #9424
11861185
failUnlessEqual = assertEquals = _deprecate(assertEqual)
11871186
failIfEqual = assertNotEquals = _deprecate(assertNotEqual)
11881187
failUnlessAlmostEqual = assertAlmostEquals = _deprecate(assertAlmostEqual)

Lib/unittest/test/test_case.py

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1088,10 +1088,8 @@ def _runtime_warn(msg):
10881088
_runtime_warn("barz")
10891089

10901090
def testDeprecatedMethodNames(self):
1091-
"""Test that the deprecated methods raise a DeprecationWarning.
1092-
1093-
The fail* methods will be removed in 3.3. The assert* methods will
1094-
have to stay around for a few more versions. See #9424.
1091+
"""
1092+
Test that the deprecated methods raise a DeprecationWarning. See #9424.
10951093
"""
10961094
old = (
10971095
(self.failIfEqual, (3, 5)),

0 commit comments

Comments
 (0)