From: Miss Islington (bot) <31488909+miss-islington@users.noreply.github.com> Date: Wed, 9 Jul 2025 13:59:40 +0000 (+0200) Subject: [3.14] Docs: unittest.enterModuleContext is not a classmethod (GH-136464) (#136465) X-Git-Tag: v3.14.0rc1~112 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=90717c2cecc20bfbcec7e7c39a99c42b7cbc5f90;p=thirdparty%2FPython%2Fcpython.git [3.14] Docs: unittest.enterModuleContext is not a classmethod (GH-136464) (#136465) Co-authored-by: Geoffrey Thomas --- diff --git a/Doc/library/unittest.rst b/Doc/library/unittest.rst index dcdda1719bf5..f8028075047c 100644 --- a/Doc/library/unittest.rst +++ b/Doc/library/unittest.rst @@ -2556,7 +2556,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