From: Miss Islington (bot) <31488909+miss-islington@users.noreply.github.com> Date: Wed, 9 Jul 2025 14:01:23 +0000 (+0200) Subject: [3.13] Docs: unittest.enterModuleContext is not a classmethod (GH-136464) (#136466) X-Git-Tag: v3.13.6~108 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=7a548e26ac76d3f5b0946b76fd909717dbff78e1;p=thirdparty%2FPython%2Fcpython.git [3.13] Docs: unittest.enterModuleContext is not a classmethod (GH-136464) (#136466) Co-authored-by: Geoffrey Thomas --- diff --git a/Doc/library/unittest.rst b/Doc/library/unittest.rst index 3e9056a458bf..5aa0e6ad5f55 100644 --- a/Doc/library/unittest.rst +++ b/Doc/library/unittest.rst @@ -2500,7 +2500,7 @@ To add cleanup code that must be run even in the case of an exception, use .. versionadded:: 3.8 -.. classmethod:: enterModuleContext(cm) +.. function:: enterModuleContext(cm) Enter the supplied :term:`context manager`. If successful, also add its :meth:`~object.__exit__` method as a cleanup function by