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

index 3e9056a458bfc3b4c876577b453320ccc896d58c..5aa0e6ad5f5507efb9b7d67b0f8d89ecead35db2 100644 (file)
@@ -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