From 7cbc64b2f6f515e0888f1381eeabcf409da7d38f Mon Sep 17 00:00:00 2001 From: Geoffrey Thomas Date: Wed, 9 Jul 2025 09:35:21 -0400 Subject: [PATCH] Docs: unittest.enterModuleContext is not a classmethod --- 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 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