Fix typos in unittest documentation (GH-24194)

* addCleanupClass  -> addClassCleanup
* doCleanupsClass -> doClassCleanups
This commit is contained in:
Conchylicultor 2021-01-20 14:08:37 +01:00 committed by GitHub
parent ae7d3cd980
commit e0e398ef18
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View 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