summaryrefslogtreecommitdiffstats
path: root/Doc/whatsnew
diff options
context:
space:
mode:
authorGregory P. Smith <greg@krypto.org>2022-01-27 04:39:15 (GMT)
committerGitHub <noreply@github.com>2022-01-27 04:39:15 (GMT)
commitb50322d20337ca468f2070eedb051a16ee1eba94 (patch)
treeba478b8fe2b91b583cec640d518f9643fb5b6f7d /Doc/whatsnew
parent9f0881476e0113d3a35e0ffa96649b9276dd75c5 (diff)
downloadcpython-b50322d20337ca468f2070eedb051a16ee1eba94.zip
cpython-b50322d20337ca468f2070eedb051a16ee1eba94.tar.gz
cpython-b50322d20337ca468f2070eedb051a16ee1eba94.tar.bz2
bpo-45162: Revert "Remove many old deprecated unittest features" (GH-30935)
Revert "bpo-45162: Remove many old deprecated unittest features (GH-28268)" This reverts commit b0a6ede3d0bd6fa4ffe413ab4dfc1059201df25b. We're deferring this change until 3.12 while upstream projects that use the legacy assertion method names are fixed. See the issue for links to the discussion. Many upstream projects now have issues and PRs filed.
Diffstat (limited to 'Doc/whatsnew')
-rw-r--r--Doc/whatsnew/3.11.rst22
-rw-r--r--Doc/whatsnew/3.2.rst3
2 files changed, 2 insertions, 23 deletions
diff --git a/Doc/whatsnew/3.11.rst b/Doc/whatsnew/3.11.rst
index edb2f6b..adf38b6 100644
--- a/Doc/whatsnew/3.11.rst
+++ b/Doc/whatsnew/3.11.rst
@@ -489,28 +489,6 @@ Removed
and :class:`fileinput.FileInput`, deprecated since Python 3.9.
(Contributed by Hugo van Kemenade in :issue:`45132`.)
-* Removed many old deprecated :mod:`unittest` features:
-
- - :class:`~unittest.TestCase` method aliases ``failUnlessEqual``,
- ``failIfEqual``, ``failUnless``, ``failIf``, ``failUnlessRaises``,
- ``failUnlessAlmostEqual``, ``failIfAlmostEqual`` (deprecated in Python 3.1),
- ``assertEquals``, ``assertNotEquals``, ``assert_``, ``assertAlmostEquals``,
- ``assertNotAlmostEquals``, ``assertRegexpMatches``, ``assertRaisesRegexp``
- (deprecated in Python 3.2), and ``assertNotRegexpMatches`` (deprecated in
- Python 3.5).
-
- - Undocumented and broken :class:`~unittest.TestCase` method
- ``assertDictContainsSubset`` (deprecated in Python 3.2).
-
- - Undocumented :meth:`<unittest.TestLoader.loadTestsFromModule>
- TestLoader.loadTestsFromModule` parameter *use_load_tests* (deprecated
- and ignored since Python 3.2).
-
- - An alias of the :class:`~unittest.TextTestResult` class:
- ``_TextTestResult`` (deprecated in Python 3.2).
-
- (Contributed by Serhiy Storchaka in :issue:`45162`.)
-
* The following deprecated functions and methods are removed in the :mod:`gettext`
module: :func:`~gettext.lgettext`, :func:`~gettext.ldgettext`,
:func:`~gettext.lngettext` and :func:`~gettext.ldngettext`.
diff --git a/Doc/whatsnew/3.2.rst b/Doc/whatsnew/3.2.rst
index 09ec58e..840cb06 100644
--- a/Doc/whatsnew/3.2.rst
+++ b/Doc/whatsnew/3.2.rst
@@ -1815,7 +1815,8 @@ names.
=============================== ==============================
Likewise, the ``TestCase.fail*`` methods deprecated in Python 3.1 are expected
- to be removed in Python 3.3.
+ to be removed in Python 3.3. Also see the :ref:`deprecated-aliases` section in
+ the :mod:`unittest` documentation.
(Contributed by Ezio Melotti; :issue:`9424`.)