diff options
author | Miss Islington (bot) <31488909+miss-islington@users.noreply.github.com> | 2022-05-11 10:50:00 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-05-11 10:50:00 (GMT) |
commit | 7a84ea4ec16371fd2785b48cbe305da70a9dc7fc (patch) | |
tree | 59fe6b6ccf9867fb53a69baca6bcfea02eb7bcac /Doc/library/unittest.rst | |
parent | d435ebd39ef2167517c02ca6c553864a9c783a0d (diff) | |
download | cpython-7a84ea4ec16371fd2785b48cbe305da70a9dc7fc.zip cpython-7a84ea4ec16371fd2785b48cbe305da70a9dc7fc.tar.gz cpython-7a84ea4ec16371fd2785b48cbe305da70a9dc7fc.tar.bz2 |
[3.10] Fix typo in unittest.rst: addCleanupModule -> addModuleCleanup (GH-92631) (GH-92660)
(cherry picked from commit 38486ca212c0827d54e7b0d0b1e2c1ccc2bdad33)
Co-authored-by: Mikhail Terekhov <termim@gmail.com>
Automerge-Triggered-By: GH:serhiy-storchaka
Diffstat (limited to 'Doc/library/unittest.rst')
-rw-r--r-- | Doc/library/unittest.rst | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Doc/library/unittest.rst b/Doc/library/unittest.rst index ae0c7d5..67fec60 100644 --- a/Doc/library/unittest.rst +++ b/Doc/library/unittest.rst @@ -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. |