Skip to content

Commit 3f2113d

Browse files
[3.9] Fix typo in unittest.rst: addCleanupModule -> addModuleCleanup (GH-92631) (GH-92661)
(cherry picked from commit 38486ca) Co-authored-by: Mikhail Terekhov <[email protected]> Automerge-Triggered-By: GH:serhiy-storchaka
1 parent 7534c50 commit 3f2113d

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
@@ -2418,7 +2418,7 @@ To add cleanup code that must be run even in the case of an exception, use
24182418
after :func:`setUpModule` if :func:`setUpModule` raises an exception.
24192419

24202420
It is responsible for calling all the cleanup functions added by
2421-
:func:`addCleanupModule`. If you need cleanup functions to be called
2421+
:func:`addModuleCleanup`. If you need cleanup functions to be called
24222422
*prior* to :func:`tearDownModule` then you can call
24232423
:func:`doModuleCleanups` yourself.
24242424

0 commit comments

Comments
 (0)