https://github.com/python/cpython/commit/3c43df4dbdb0a41b8e5503b7fa4741a29b6007e0
commit: 3c43df4dbdb0a41b8e5503b7fa4741a29b6007e0
branch: main
author: Geoffrey Thomas <geo...@ldpreload.com>
committer: AlexWaygood <alex.wayg...@gmail.com>
date: 2025-07-09T14:52:39+01:00
summary:

Docs: unittest.enterModuleContext is not a classmethod (#136464)

files:
M Doc/library/unittest.rst

diff --git a/Doc/library/unittest.rst b/Doc/library/unittest.rst
index d526e835caa18c..ec96e8416120fa 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

_______________________________________________
Python-checkins mailing list -- python-checkins@python.org
To unsubscribe send an email to python-checkins-le...@python.org
https://mail.python.org/mailman3//lists/python-checkins.python.org
Member address: arch...@mail-archive.com

Reply via email to