[Python-checkins] [3.9] Fix typo in unittest.rst: addCleanupModule -> addModuleCleanup (GH-92631) (GH-92661)
miss-islington
webhook-mailer at python.org
Wed May 11 06:50:30 EDT 2022
https://github.com/python/cpython/commit/3f2113dd08a31bebdd9c9d697104dd592aefed71
commit: 3f2113dd08a31bebdd9c9d697104dd592aefed71
branch: 3.9
author: Miss Islington (bot) <31488909+miss-islington at users.noreply.github.com>
committer: miss-islington <31488909+miss-islington at users.noreply.github.com>
date: 2022-05-11T03:50:00-07:00
summary:
[3.9] Fix typo in unittest.rst: addCleanupModule -> addModuleCleanup (GH-92631) (GH-92661)
(cherry picked from commit 38486ca212c0827d54e7b0d0b1e2c1ccc2bdad33)
Co-authored-by: Mikhail Terekhov <termim at gmail.com>
Automerge-Triggered-By: GH:serhiy-storchaka
files:
M Doc/library/unittest.rst
diff --git a/Doc/library/unittest.rst b/Doc/library/unittest.rst
index 90807579266a0..a000428c8be96 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.
More information about the Python-checkins
mailing list