@@ -1847,33 +1847,56 @@ and will be removed in Python 3.12.
1847
1847
C APIs pending removal are
1848
1848
:ref: `listed separately <whatsnew311-c-api-pending-removal >`.
1849
1849
1850
- * :class: `pkgutil.ImpImporter `
1851
- * :class: `pkgutil.ImpLoader `
1852
- * :envvar: `PYTHONTHREADDEBUG `
1850
+ * The :mod: `asynchat ` module
1851
+ * The :mod: `asyncore ` module
1852
+ * The :ref: `entire distutils package <distutils-deprecated >`
1853
+ * The :mod: `imp ` module
1854
+ * The :class: `typing.io <typing.IO> ` namespace
1855
+ * The :class: `typing.re <typing.Pattern> ` namespace
1856
+ * :func: `!cgi.log `
1853
1857
* :func: `importlib.find_loader `
1854
- * :func: `importlib.util.module_for_loader `
1855
- * :func: `importlib.util.set_loader_wrapper `
1856
- * :func: `importlib.util.set_package_wrapper `
1857
1858
* :meth: `importlib.abc.Loader.module_repr `
1858
- * :meth: `importlib.abc.Loadermodule_repr `
1859
- * :meth: `importlib.abc.MetaPathFinder.find_module `
1860
1859
* :meth: `importlib.abc.MetaPathFinder.find_module `
1861
1860
* :meth: `importlib.abc.PathEntryFinder.find_loader `
1862
1861
* :meth: `importlib.abc.PathEntryFinder.find_module `
1863
- * :meth: `importlib.machinery.BuiltinImporter.find_module `
1864
- * :meth: `importlib.machinery.BuiltinLoader.module_repr `
1865
- * :meth: `importlib.machinery.FileFinder.find_loader `
1866
- * :meth: `importlib.machinery.FileFinder.find_module `
1867
- * :meth: `importlib.machinery.FrozenImporter.find_module `
1868
- * :meth: `importlib.machinery.FrozenLoader.module_repr `
1862
+ * :meth: `! importlib.machinery.BuiltinImporter.find_module `
1863
+ * :meth: `! importlib.machinery.BuiltinLoader.module_repr `
1864
+ * :meth: `! importlib.machinery.FileFinder.find_loader `
1865
+ * :meth: `! importlib.machinery.FileFinder.find_module `
1866
+ * :meth: `! importlib.machinery.FrozenImporter.find_module `
1867
+ * :meth: `! importlib.machinery.FrozenLoader.module_repr `
1869
1868
* :meth: `importlib.machinery.PathFinder.find_module `
1870
- * :meth: `importlib.machinery.WindowsRegistryFinder.find_module `
1869
+ * :meth: `!importlib.machinery.WindowsRegistryFinder.find_module `
1870
+ * :func: `importlib.util.module_for_loader `
1871
+ * :func: `!importlib.util.set_loader_wrapper `
1872
+ * :func: `!importlib.util.set_package_wrapper `
1873
+ * :class: `pkgutil.ImpImporter `
1874
+ * :class: `pkgutil.ImpLoader `
1871
1875
* :meth: `pathlib.Path.link_to `
1872
- * The entire :ref: `distutils namespace <distutils-deprecated >`
1873
- * :func: `cgi.log `
1874
- * :func: `sqlite3.OptimizedUnicode `
1875
- * :func: `sqlite3.enable_shared_cache `
1876
-
1876
+ * :func: `!sqlite3.enable_shared_cache `
1877
+ * :func: `!sqlite3.OptimizedUnicode `
1878
+ * :envvar: `PYTHONTHREADDEBUG ` environment variable
1879
+ * The following deprecated aliases in :mod: `unittest `:
1880
+
1881
+ ============================ =============================== ===============
1882
+ Deprecated alias Method Name Deprecated in
1883
+ ============================ =============================== ===============
1884
+ ``failUnless `` :meth: `.assertTrue ` 3.1
1885
+ ``failIf `` :meth: `.assertFalse ` 3.1
1886
+ ``failUnlessEqual `` :meth: `.assertEqual ` 3.1
1887
+ ``failIfEqual `` :meth: `.assertNotEqual ` 3.1
1888
+ ``failUnlessAlmostEqual `` :meth: `.assertAlmostEqual ` 3.1
1889
+ ``failIfAlmostEqual `` :meth: `.assertNotAlmostEqual ` 3.1
1890
+ ``failUnlessRaises `` :meth: `.assertRaises ` 3.1
1891
+ ``assert_ `` :meth: `.assertTrue ` 3.2
1892
+ ``assertEquals `` :meth: `.assertEqual ` 3.2
1893
+ ``assertNotEquals `` :meth: `.assertNotEqual ` 3.2
1894
+ ``assertAlmostEquals `` :meth: `.assertAlmostEqual ` 3.2
1895
+ ``assertNotAlmostEquals `` :meth: `.assertNotAlmostEqual ` 3.2
1896
+ ``assertRegexpMatches `` :meth: `.assertRegex ` 3.2
1897
+ ``assertRaisesRegexp `` :meth: `.assertRaisesRegex ` 3.2
1898
+ ``assertNotRegexpMatches `` :meth: `.assertNotRegex ` 3.5
1899
+ ============================ =============================== ===============
1877
1900
1878
1901
.. _whatsnew311-removed :
1879
1902
.. _whatsnew311-python-api-removed :
0 commit comments