From c2f9ced66fabb767bd8754871e897249cbba0a36 Mon Sep 17 00:00:00 2001 From: Geoffrey Thomas Date: Wed, 9 Jul 2025 09:52:39 -0400 Subject: [PATCH] Docs: unittest.enterModuleContext is not a classmethod (GH-136464) (cherry picked from commit 3c43df4dbdb0a41b8e5503b7fa4741a29b6007e0) Co-authored-by: Geoffrey Thomas --- Doc/library/unittest.rst | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Doc/library/unittest.rst b/Doc/library/unittest.rst index 3e9056a458bfc3..5aa0e6ad5f5507 100644 --- a/Doc/library/unittest.rst +++ b/Doc/library/unittest.rst @@ -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