summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>2022-05-11 03:50:00 -0700
committerGitHub <noreply@github.com>2022-05-11 03:50:00 -0700
commit3f2113dd08a31bebdd9c9d697104dd592aefed71 (patch)
treecd508627abef3f0290927c6fa80a06e5ba862efd
parent[3.9] gh-76773: Update docs mentioning no-longer-supported Windows versions &... (diff)
downloadcpython-3f2113dd08a31bebdd9c9d697104dd592aefed71.tar.gz
cpython-3f2113dd08a31bebdd9c9d697104dd592aefed71.tar.bz2
cpython-3f2113dd08a31bebdd9c9d697104dd592aefed71.zip
[3.9] Fix typo in unittest.rst: addCleanupModule -> addModuleCleanup (GH-92631) (GH-92661)
(cherry picked from commit 38486ca212c0827d54e7b0d0b1e2c1ccc2bdad33) Co-authored-by: Mikhail Terekhov <termim@gmail.com> Automerge-Triggered-By: GH:serhiy-storchaka
-rw-r--r--Doc/library/unittest.rst2
1 files changed, 1 insertions, 1 deletions
diff --git a/Doc/library/unittest.rst b/Doc/library/unittest.rst
index 90807579266..a000428c8be 100644
--- a/Doc/library/unittest.rst
+++ b/Doc/library/unittest.rst
@@ -2418,7 +2418,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.