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