]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
[3.10] Fix typo in unittest.rst: addCleanupModule -> addModuleCleanup (GH-92631)...
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>
Wed, 11 May 2022 10:50:00 +0000 (03:50 -0700)
committerGitHub <noreply@github.com>
Wed, 11 May 2022 10:50:00 +0000 (03:50 -0700)
(cherry picked from commit 38486ca212c0827d54e7b0d0b1e2c1ccc2bdad33)

Co-authored-by: Mikhail Terekhov <termim@gmail.com>
Automerge-Triggered-By: GH:serhiy-storchaka
Doc/library/unittest.rst

index ae0c7d59964f165e8801d3316bb42df38b02f66e..67fec60263a4c647501d218c8b72ba4a61c5cfc1 100644 (file)
@@ -2439,7 +2439,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.