mirror of
https://github.com/python/cpython.git
synced 2025-11-11 14:44:57 +00:00
Fix typos in unittest documentation (GH-24194)
* addCleanupClass -> addClassCleanup * doCleanupsClass -> doClassCleanups
This commit is contained in:
parent
ae7d3cd980
commit
e0e398ef18
1 changed files with 3 additions and 3 deletions
|
|
@ -1498,11 +1498,11 @@ Test cases
|
||||||
after :meth:`setUpClass` if :meth:`setUpClass` raises an exception.
|
after :meth:`setUpClass` if :meth:`setUpClass` raises an exception.
|
||||||
|
|
||||||
It is responsible for calling all the cleanup functions added by
|
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
|
*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.
|
functions one at a time, so it can be called at any time.
|
||||||
|
|
||||||
.. versionadded:: 3.8
|
.. versionadded:: 3.8
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue