]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
Fix typos in unittest documentation (GH-24194)
authorConchylicultor <etiennefg.pot@gmail.com>
Wed, 20 Jan 2021 13:08:37 +0000 (14:08 +0100)
committerGitHub <noreply@github.com>
Wed, 20 Jan 2021 13:08:37 +0000 (18:38 +0530)
* addCleanupClass  -> addClassCleanup
* doCleanupsClass -> doClassCleanups

Doc/library/unittest.rst

index 0a0993518efddc5ec2359b9b835becb88aab6cfa..bb229f0bf9ce0e0fce3fdef40ef80090025fdaaf 100644 (file)
@@ -1498,11 +1498,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