@@ -1777,33 +1777,56 @@ and will be removed in Python 3.12.
1777
1777
C APIs pending removal are
1778
1778
:ref: `listed separately <whatsnew311-c-api-pending-removal >`.
1779
1779
1780
- * :class: `pkgutil.ImpImporter `
1781
- * :class: `pkgutil.ImpLoader `
1782
- * :envvar: `PYTHONTHREADDEBUG `
1780
+ * The :mod: `asynchat ` module
1781
+ * The :mod: `asyncore ` module
1782
+ * The :ref: `entire distutils package <distutils-deprecated >`
1783
+ * The :mod: `imp ` module
1784
+ * The :class: `typing.io <typing.IO> ` namespace
1785
+ * The :class: `typing.re <typing.Pattern> ` namespace
1786
+ * :func: `!cgi.log `
1783
1787
* :func: `importlib.find_loader `
1784
- * :func: `importlib.util.module_for_loader `
1785
- * :func: `importlib.util.set_loader_wrapper `
1786
- * :func: `importlib.util.set_package_wrapper `
1787
1788
* :meth: `importlib.abc.Loader.module_repr `
1788
- * :meth: `importlib.abc.Loadermodule_repr `
1789
- * :meth: `importlib.abc.MetaPathFinder.find_module `
1790
1789
* :meth: `importlib.abc.MetaPathFinder.find_module `
1791
1790
* :meth: `importlib.abc.PathEntryFinder.find_loader `
1792
1791
* :meth: `importlib.abc.PathEntryFinder.find_module `
1793
- * :meth: `importlib.machinery.BuiltinImporter.find_module `
1794
- * :meth: `importlib.machinery.BuiltinLoader.module_repr `
1795
- * :meth: `importlib.machinery.FileFinder.find_loader `
1796
- * :meth: `importlib.machinery.FileFinder.find_module `
1797
- * :meth: `importlib.machinery.FrozenImporter.find_module `
1798
- * :meth: `importlib.machinery.FrozenLoader.module_repr `
1792
+ * :meth: `! importlib.machinery.BuiltinImporter.find_module `
1793
+ * :meth: `! importlib.machinery.BuiltinLoader.module_repr `
1794
+ * :meth: `! importlib.machinery.FileFinder.find_loader `
1795
+ * :meth: `! importlib.machinery.FileFinder.find_module `
1796
+ * :meth: `! importlib.machinery.FrozenImporter.find_module `
1797
+ * :meth: `! importlib.machinery.FrozenLoader.module_repr `
1799
1798
* :meth: `importlib.machinery.PathFinder.find_module `
1800
- * :meth: `importlib.machinery.WindowsRegistryFinder.find_module `
1799
+ * :meth: `!importlib.machinery.WindowsRegistryFinder.find_module `
1800
+ * :func: `importlib.util.module_for_loader `
1801
+ * :func: `!importlib.util.set_loader_wrapper `
1802
+ * :func: `!importlib.util.set_package_wrapper `
1803
+ * :class: `pkgutil.ImpImporter `
1804
+ * :class: `pkgutil.ImpLoader `
1801
1805
* :meth: `pathlib.Path.link_to `
1802
- * The entire :ref: `distutils namespace <distutils-deprecated >`
1803
- * :func: `cgi.log `
1804
- * :func: `sqlite3.OptimizedUnicode `
1805
- * :func: `sqlite3.enable_shared_cache `
1806
-
1806
+ * :func: `!sqlite3.enable_shared_cache `
1807
+ * :func: `!sqlite3.OptimizedUnicode `
1808
+ * :envvar: `PYTHONTHREADDEBUG ` environment variable
1809
+ * The following deprecated aliases in :mod: `unittest `:
1810
+
1811
+ ============================ =============================== ===============
1812
+ Deprecated alias Method Name Deprecated in
1813
+ ============================ =============================== ===============
1814
+ ``failUnless `` :meth: `.assertTrue ` 3.1
1815
+ ``failIf `` :meth: `.assertFalse ` 3.1
1816
+ ``failUnlessEqual `` :meth: `.assertEqual ` 3.1
1817
+ ``failIfEqual `` :meth: `.assertNotEqual ` 3.1
1818
+ ``failUnlessAlmostEqual `` :meth: `.assertAlmostEqual ` 3.1
1819
+ ``failIfAlmostEqual `` :meth: `.assertNotAlmostEqual ` 3.1
1820
+ ``failUnlessRaises `` :meth: `.assertRaises ` 3.1
1821
+ ``assert_ `` :meth: `.assertTrue ` 3.2
1822
+ ``assertEquals `` :meth: `.assertEqual ` 3.2
1823
+ ``assertNotEquals `` :meth: `.assertNotEqual ` 3.2
1824
+ ``assertAlmostEquals `` :meth: `.assertAlmostEqual ` 3.2
1825
+ ``assertNotAlmostEquals `` :meth: `.assertNotAlmostEqual ` 3.2
1826
+ ``assertRegexpMatches `` :meth: `.assertRegex ` 3.2
1827
+ ``assertRaisesRegexp `` :meth: `.assertRaisesRegex ` 3.2
1828
+ ``assertNotRegexpMatches `` :meth: `.assertNotRegex ` 3.5
1829
+ ============================ =============================== ===============
1807
1830
1808
1831
.. _whatsnew311-removed :
1809
1832
.. _whatsnew311-python-api-removed :
0 commit comments