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

This commit is contained in:
Geoffrey Thomas 2025-07-09 09:52:39 -04:00 committed by GitHub
parent 77fa7a4dcc
commit 3c43df4dbd
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -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