mirror of
https://github.com/python/cpython.git
synced 2025-09-29 19:56:59 +00:00
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:
parent
53ab4af444
commit
bb46c135ad
1 changed files with 3 additions and 3 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue