From: Geoffrey Thomas Date: Wed, 9 Jul 2025 13:52:39 +0000 (-0400) Subject: Docs: unittest.enterModuleContext is not a classmethod (#136464) X-Git-Tag: v3.15.0a1~1040 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=3c43df4dbdb0a41b8e5503b7fa4741a29b6007e0;p=thirdparty%2FPython%2Fcpython.git Docs: unittest.enterModuleContext is not a classmethod (#136464) --- diff --git a/Doc/library/unittest.rst b/Doc/library/unittest.rst index d526e835caa1..ec96e8416120 100644 --- a/Doc/library/unittest.rst +++ b/Doc/library/unittest.rst @@ -2563,7 +2563,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