summaryrefslogtreecommitdiffstats
path: root/Doc/library/test.rst
diff options
context:
space:
mode:
authorGeorg Brandl <georg@python.org>2014-10-30 21:25:41 (GMT)
committerGeorg Brandl <georg@python.org>2014-10-30 21:25:41 (GMT)
commit93a56cdc3798f66f82f8c3d538b479df8931752e (patch)
tree31b5320243b711763d7e5a92db2a2744188e0f9c /Doc/library/test.rst
parentaea7f4a8e27a2f3a512a9cafbee25e00247f548b (diff)
downloadcpython-93a56cdc3798f66f82f8c3d538b479df8931752e.zip
cpython-93a56cdc3798f66f82f8c3d538b479df8931752e.tar.gz
cpython-93a56cdc3798f66f82f8c3d538b479df8931752e.tar.bz2
Doc: fix default role usage (except in unittest mock docs)
Diffstat (limited to 'Doc/library/test.rst')
-rw-r--r--Doc/library/test.rst6
1 files changed, 3 insertions, 3 deletions
diff --git a/Doc/library/test.rst b/Doc/library/test.rst
index 7a7182a..974909e 100644
--- a/Doc/library/test.rst
+++ b/Doc/library/test.rst
@@ -85,7 +85,7 @@ A basic boilerplate is often used::
This code pattern allows the testing suite to be run by :mod:`test.regrtest`,
on its own as a script that supports the :mod:`unittest` CLI, or via the
-`python -m unittest` CLI.
+``python -m unittest`` CLI.
The goal for regression testing is to try to break code. This leads to a few
guidelines to be followed:
@@ -141,9 +141,9 @@ guidelines to be followed:
arg = (1, 2, 3)
When using this pattern, remember that all classes that inherit from
- `unittest.TestCase` are run as tests. The `Mixin` class in the example above
+ :class:`unittest.TestCase` are run as tests. The :class:`Mixin` class in the example above
does not have any data and so can't be run by itself, thus it does not
- inherit from `unittest.TestCase`.
+ inherit from :class:`unittest.TestCase`.
.. seealso::