Skip to content

Commit 7cbc64b

Browse files
committed
Docs: unittest.enterModuleContext is not a classmethod
1 parent 77fa7a4 commit 7cbc64b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Doc/library/unittest.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2563,7 +2563,7 @@ To add cleanup code that must be run even in the case of an exception, use
25632563
.. versionadded:: 3.8
25642564

25652565

2566-
.. classmethod:: enterModuleContext(cm)
2566+
.. function:: enterModuleContext(cm)
25672567

25682568
Enter the supplied :term:`context manager`. If successful, also
25692569
add its :meth:`~object.__exit__` method as a cleanup function by

0 commit comments

Comments
 (0)