Skip to content

Commit

Permalink
Fix typo in unittest.rst: addCleanupModule -> addModuleCleanup (GH-92631
Browse files Browse the repository at this point in the history
)
  • Loading branch information
termim authored May 11, 2022
1 parent dc09120 commit 38486ca
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 @@ -2512,7 +2512,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 38486ca

Please sign in to comment.