[Python-checkins] Fix reST markup in unittest documentation (GH-8665)
Berker Peksag
webhook-mailer at python.org
Fri Aug 3 17:56:58 EDT 2018
https://github.com/python/cpython/commit/2e5566d9e774dcde81e8139b486730917816e045
commit: 2e5566d9e774dcde81e8139b486730917816e045
branch: master
author: Berker Peksag <berker.peksag at gmail.com>
committer: GitHub <noreply at github.com>
date: 2018-08-04T00:56:55+03:00
summary:
Fix reST markup in unittest documentation (GH-8665)
files:
M Doc/library/unittest.rst
diff --git a/Doc/library/unittest.rst b/Doc/library/unittest.rst
index 086d93782562..224adf08567e 100644
--- a/Doc/library/unittest.rst
+++ b/Doc/library/unittest.rst
@@ -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
More information about the Python-checkins
mailing list