]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
Fix reST markup in unittest documentation (GH-8665)
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>
Fri, 3 Aug 2018 22:13:52 +0000 (15:13 -0700)
committerBerker Peksag <berker.peksag@gmail.com>
Fri, 3 Aug 2018 22:13:52 +0000 (01:13 +0300)
(cherry picked from commit 2e5566d9e774dcde81e8139b486730917816e045)

Co-authored-by: Berker Peksag <berker.peksag@gmail.com>
Doc/library/unittest.rst

index 086d93782562e3d2b61ad5d1453f5d706ff1b486..224adf08567ec89d8449433abe52afe753615511 100644 (file)
@@ -412,7 +412,7 @@ run whether the test method succeeded or not.
 Such a working environment for the testing code is called a
 :dfn:`test fixture`.  A new TestCase instance is created as a unique
 test fixture used to execute each individual test method.  Thus
-`~TestCase.setUp`, `~TestCase.tearDown`, and `~TestCase.__init__`
+:meth:`~TestCase.setUp`, :meth:`~TestCase.tearDown`, and :meth:`~TestCase.__init__`
 will be called once per test.
 
 It is recommended that you use TestCase implementations to group tests together