Fix typo in unittest.rst: addCleanupModule -> addModuleCleanup (GH-92631)

This commit is contained in:
Mikhail Terekhov 2022-05-11 02:14:12 -04:00 committed by GitHub
parent dc091204f9
commit 38486ca212
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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.