]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
Fix typos in unittest documentation (GH-24194)
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>
Wed, 20 Jan 2021 13:18:08 +0000 (05:18 -0800)
committerGitHub <noreply@github.com>
Wed, 20 Jan 2021 13:18:08 +0000 (05:18 -0800)
* addCleanupClass  -> addClassCleanup
* doCleanupsClass -> doClassCleanups
(cherry picked from commit e0e398ef1855f3db708c682f70adc412f0877d59)

Co-authored-by: Conchylicultor <etiennefg.pot@gmail.com>
Doc/library/unittest.rst

index a9e679f048472cfde77aca496c1c20fe79b7984d..af2f46cfe8f6a9522f42d384e8fdf5070b7e72f4 100644 (file)
@@ -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