From: Conchylicultor Date: Wed, 20 Jan 2021 13:08:37 +0000 (+0100) Subject: Fix typos in unittest documentation (GH-24194) X-Git-Tag: v3.10.0a5~75 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=e0e398ef1855f3db708c682f70adc412f0877d59;p=thirdparty%2FPython%2Fcpython.git Fix typos in unittest documentation (GH-24194) * addCleanupClass -> addClassCleanup * doCleanupsClass -> doClassCleanups --- diff --git a/Doc/library/unittest.rst b/Doc/library/unittest.rst index 0a0993518efd..bb229f0bf9ce 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