mirror of
https://github.com/python/cpython.git
synced 2025-08-04 00:48:58 +00:00
[3.11] Fix typo in unittest.rst: addCleanupModule -> addModuleCleanup (GH-92631) (GH-92659)
(cherry picked from commit 38486ca212
)
Co-authored-by: Mikhail Terekhov <termim@gmail.com>
Automerge-Triggered-By: GH:serhiy-storchaka
This commit is contained in:
parent
a9b5bc3274
commit
5ea8a93e1a
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