mirror of
https://github.com/python/cpython.git
synced 2025-08-03 16:39:00 +00:00
Fix typo in unittest.rst: addCleanupModule -> addModuleCleanup (GH-92631)
This commit is contained in:
parent
dc091204f9
commit
38486ca212
1 changed files with 1 additions and 1 deletions
|
@ -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.
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue