mirror of https://github.com/python/cpython
[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
|
@ -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.
|
after :func:`setUpModule` if :func:`setUpModule` raises an exception.
|
||||||
|
|
||||||
It is responsible for calling all the cleanup functions added by
|
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
|
*prior* to :func:`tearDownModule` then you can call
|
||||||
:func:`doModuleCleanups` yourself.
|
:func:`doModuleCleanups` yourself.
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue