8000 Fix typos in unittest documentation (GH-24194) · python/cpython@bb46c13 · GitHub
[go: up one dir, main page]

Skip to content

Commit bb46c13

Browse files
Fix typos in unittest documentation (GH-24194)
* addCleanupClass -> addClassCleanup * doCleanupsClass -> doClassCleanups (cherry picked from commit e0e398e) Co-authored-by: Conchylicultor <etiennefg.pot@gmail.com>
1 parent 53ab4af commit bb46c13

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

Doc/library/unittest.rst

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1479,11 +1479,11 @@ Test cases
14791479
after :meth:`setUpClass` if :meth:`setUpClass` raises an exception.
14801480

14811481
It is responsible for calling all the cleanup functions added by
1482-
:meth:`addCleanupClass`. If you need cleanup functions to be called
1482+
:meth:`addClassCleanup`. If you need cleanup functions to be called
14831483
*prior* to :meth:`tearDownClass` then you can call
1484-
:meth:`doCleanupsClass` yourself.
1484+
:meth:`doClassCleanups` yourself.
14851485

1486-
:meth:`doCleanupsClass` pops methods off the stack of cleanup
1486+
:meth:`doClassCleanups` pops methods off the stack of cleanup
14871487
functions one at a time, so it can be called at any time.
14881488

14891489
.. versionadded:: 3.8

0 commit comments

Comments
 (0)
0