aboutsummaryrefslogtreecommitdiff
path: root/Doc
diff options
context:
space:
mode:
authorConchylicultor <etiennefg.pot@gmail.com>2021-01-20 14:08:37 +0100
committerGitHub <noreply@github.com>2021-01-20 18:38:37 +0530
commite0e398ef1855f3db708c682f70adc412f0877d59 (patch)
tree67dffe8e3009432121e7971df617da8ddddaed9e /Doc
parentbpo-42864: Fix compiler warning in the tokenizer with the new paren stack for... (diff)
downloadcpython-e0e398ef1855f3db708c682f70adc412f0877d59.tar.gz
cpython-e0e398ef1855f3db708c682f70adc412f0877d59.tar.bz2
cpython-e0e398ef1855f3db708c682f70adc412f0877d59.zip
Fix typos in unittest documentation (GH-24194)
* addCleanupClass -> addClassCleanup * doCleanupsClass -> doClassCleanups
Diffstat (limited to 'Doc')
-rw-r--r--Doc/library/unittest.rst6
1 files changed, 3 insertions, 3 deletions
diff --git a/Doc/library/unittest.rst b/Doc/library/unittest.rst
index 0a0993518ef..bb229f0bf9c 100644
--- a/Doc/library/unittest.rst
+++ b/Doc/library/unittest.rst
@@ -1498,11 +1498,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