Skip to content

Commit 5ea8a93

Browse files
[3.11] Fix typo in unittest.rst: addCleanupModule -> addModuleCleanup (GH-92631) (GH-92659)
(cherry picked from commit 38486ca) Co-authored-by: Mikhail Terekhov <termim@gmail.com> Automerge-Triggered-By: GH:serhiy-storchaka
1 parent a9b5bc3 commit 5ea8a93

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Doc/library/unittest.rst

+1-1
Original file line numberDiff line numberDiff line change
@@ -2512,7 +2512,7 @@ To add cleanup code that must be run even in the case of an exception, use
25122512
after :func:`setUpModule` if :func:`setUpModule` raises an exception.
25132513

25142514
It is responsible for calling all the cleanup functions added by
2515-
:func:`addCleanupModule`. If you need cleanup functions to be called
2515+
:func:`addModuleCleanup`. If you need cleanup functions to be called
25162516
*prior* to :func:`tearDownModule` then you can call
25172517
:func:`doModuleCleanups` yourself.
25182518

0 commit comments

Comments
 (0)