Fix typos in unittest documentation (GH-24194)

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

Co-authored-by: Conchylicultor <etiennefg.pot@gmail.com>
This commit is contained in:
Miss Islington (bot) 2021-03-13 16:27:53 -08:00 committed by GitHub
parent 53ab4af444
commit bb46c135ad
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -1479,11 +1479,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