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

Skip to content

Commit e0e398e

Browse files
Fix typos in unittest documentation (GH-24194)
* addCleanupClass -> addClassCleanup * doCleanupsClass -> doClassCleanups
1 parent ae7d3cd commit e0e398e

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

15001500
It is responsible for calling all the cleanup functions added by
1501-
:meth:`addCleanupClass`. If you need cleanup functions to be called
1501+
:meth:`addClassCleanup`. If you need cleanup functions to be called
15021502
*prior* to :meth:`tearDownClass` then you can call
1503-
:meth:`doCleanupsClass` yourself.
1503+
:meth:`doClassCleanups` yourself.
15041504

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

15081508
.. versionadded:: 3.8

0 commit comments

Comments
 (0)
0