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

Skip to content

Commit ebb2f26

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 8f334db commit ebb2f26

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
@@ -1477,11 +1477,11 @@ Test cases
14771477
after :meth:`setUpClass` if :meth:`setUpClass` raises an exception.
14781478

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

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

14871487
.. versionadded:: 3.8

0 commit comments

Comments
 (0)
0