]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
[3.14] Docs: unittest.enterModuleContext is not a classmethod (GH-136464) (#136465)
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>
Wed, 9 Jul 2025 13:59:40 +0000 (15:59 +0200)
committerGitHub <noreply@github.com>
Wed, 9 Jul 2025 13:59:40 +0000 (13:59 +0000)
Co-authored-by: Geoffrey Thomas <geofft@ldpreload.com>
Doc/library/unittest.rst

index dcdda1719bf5938de2901df1169e098618072699..f8028075047cc349a946e737af4e827a1a668ebc 100644 (file)
@@ -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