From: Miss Islington (bot) <31488909+miss-islington@users.noreply.github.com> Date: Thu, 23 Aug 2018 14:59:06 +0000 (-0400) Subject: Make it more clear that setUpClass runs before each class, not "class run" (GH-8844) X-Git-Tag: v2.7.16rc1~172 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=5c437d6fd81f5400504eadd2c578b39a0f052bd0;p=thirdparty%2FPython%2Fcpython.git Make it more clear that setUpClass runs before each class, not "class run" (GH-8844) (cherry picked from commit c33bb5d4016fb2fc8f3b6d4b0c14b73b33cdb3cf) Co-authored-by: Ville Skyttä --- diff --git a/Doc/library/unittest.rst b/Doc/library/unittest.rst index 0915926ab7c1..06368fcb3d1f 100644 --- a/Doc/library/unittest.rst +++ b/Doc/library/unittest.rst @@ -730,7 +730,7 @@ Test cases .. method:: setUpClass() - A class method called before tests in an individual class run. + A class method called before tests in an individual class are run. ``setUpClass`` is called with the class as the only argument and must be decorated as a :func:`classmethod`::