Skip to content

Commit 7a84ea4

Browse files
[3.10] Fix typo in unittest.rst: addCleanupModule -> addModuleCleanup (GH-92631) (GH-92660)
(cherry picked from commit 38486ca) Co-authored-by: Mikhail Terekhov <[email protected]> Automerge-Triggered-By: GH:serhiy-storchaka
1 parent d435ebd commit 7a84ea4

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

24412441
It is responsible for calling all the cleanup functions added by
2442-
:func:`addCleanupModule`. If you need cleanup functions to be called
2442+
:func:`addModuleCleanup`. If you need cleanup functions to be called
24432443
*prior* to :func:`tearDownModule` then you can call
24442444
:func:`doModuleCleanups` yourself.
24452445

0 commit comments

Comments
 (0)