]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
Docs: unittest.enterModuleContext is not a classmethod (#136464)
authorGeoffrey Thomas <geofft@ldpreload.com>
Wed, 9 Jul 2025 13:52:39 +0000 (09:52 -0400)
committerGitHub <noreply@github.com>
Wed, 9 Jul 2025 13:52:39 +0000 (14:52 +0100)
Doc/library/unittest.rst

index d526e835caa18cc5a34125f754af5b2b91206855..ec96e8416120fa6d96f1a4feb1bc7b2426a9972d 100644 (file)
@@ -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