From b8b92bf433b3351efa3303304074066701406c4c Mon Sep 17 00:00:00 2001 From: Mikhail Terekhov Date: Wed, 11 May 2022 02:14:12 -0400 Subject: [PATCH] Fix typo in unittest.rst: addCleanupModule -> addModuleCleanup (GH-92631) (cherry picked from commit 38486ca212c0827d54e7b0d0b1e2c1ccc2bdad33) Co-authored-by: Mikhail Terekhov --- Doc/library/unittest.rst | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Doc/library/unittest.rst b/Doc/library/unittest.rst index f6bcba06d90ee6..e07a32b88b1c30 100644 --- a/Doc/library/unittest.rst +++ b/Doc/library/unittest.rst @@ -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.