[Python-checkins] Fix typos in unittest documentation (GH-24194)

miss-islington webhook-mailer at python.org
Wed Jan 20 08:18:17 EST 2021


https://github.com/python/cpython/commit/ebb2f26cd8b7c0b4919e994a8e62b6e709597939
commit: ebb2f26cd8b7c0b4919e994a8e62b6e709597939
branch: 3.8
author: Miss Islington (bot) <31488909+miss-islington at users.noreply.github.com>
committer: miss-islington <31488909+miss-islington at users.noreply.github.com>
date: 2021-01-20T05:18:08-08:00
summary:

Fix typos in unittest documentation (GH-24194)


* addCleanupClass  -> addClassCleanup
* doCleanupsClass -> doClassCleanups
(cherry picked from commit e0e398ef1855f3db708c682f70adc412f0877d59)

Co-authored-by: Conchylicultor <etiennefg.pot at gmail.com>

files:
M Doc/library/unittest.rst

diff --git a/Doc/library/unittest.rst b/Doc/library/unittest.rst
index a9e679f048472..af2f46cfe8f6a 100644
--- a/Doc/library/unittest.rst
+++ b/Doc/library/unittest.rst
@@ -1477,11 +1477,11 @@ Test cases
       after :meth:`setUpClass` if :meth:`setUpClass` raises an exception.
 
       It is responsible for calling all the cleanup functions added by
-      :meth:`addCleanupClass`. If you need cleanup functions to be called
+      :meth:`addClassCleanup`. If you need cleanup functions to be called
       *prior* to :meth:`tearDownClass` then you can call
-      :meth:`doCleanupsClass` yourself.
+      :meth:`doClassCleanups` yourself.
 
-      :meth:`doCleanupsClass` pops methods off the stack of cleanup
+      :meth:`doClassCleanups` pops methods off the stack of cleanup
       functions one at a time, so it can be called at any time.
 
       .. versionadded:: 3.8



More information about the Python-checkins mailing list