diff options
author | Miss Islington (bot) <31488909+miss-islington@users.noreply.github.com> | 2021-03-14 00:27:53 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-03-14 00:27:53 (GMT) |
commit | bb46c135ad04211aca00dd58fd2c4128f23dde8f (patch) | |
tree | e1a7398cfe0efee07a8a227a57e43277f13e25ac | |
parent | 53ab4af4444a01ef3848e49278a0b46c8f9e99cf (diff) | |
download | cpython-bb46c135ad04211aca00dd58fd2c4128f23dde8f.zip cpython-bb46c135ad04211aca00dd58fd2c4128f23dde8f.tar.gz cpython-bb46c135ad04211aca00dd58fd2c4128f23dde8f.tar.bz2 |
Fix typos in unittest documentation (GH-24194)
* addCleanupClass -> addClassCleanup
* doCleanupsClass -> doClassCleanups
(cherry picked from commit e0e398ef1855f3db708c682f70adc412f0877d59)
Co-authored-by: Conchylicultor <etiennefg.pot@gmail.com>
-rw-r--r-- | Doc/library/unittest.rst | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/Doc/library/unittest.rst b/Doc/library/unittest.rst index d05e15e..ebed5c0 100644 --- a/Doc/library/unittest.rst +++ b/Doc/library/unittest.rst @@ -1479,11 +1479,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 |