Skip to content

Commit

Permalink
[3.9] Fix typo in unittest.rst: addCleanupModule -> addModuleCleanup (G…
Browse files Browse the repository at this point in the history
…H-92631) (GH-92661)

(cherry picked from commit 38486ca)


Co-authored-by: Mikhail Terekhov <termim@gmail.com>

Automerge-Triggered-By: GH:serhiy-storchaka
  • Loading branch information
miss-islington committed May 11, 2022
1 parent 7534c50 commit 3f2113d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Doc/library/unittest.rst
Original file line number Diff line number Diff line change
Expand Up @@ -2418,7 +2418,7 @@ To add cleanup code that must be run even in the case of an exception, use
after :func:`setUpModule` if :func:`setUpModule` raises an exception.

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

Expand Down

0 comments on commit 3f2113d

Please sign in to comment.