diff options
author | Georg Brandl <georg@python.org> | 2014-10-30 21:25:41 (GMT) |
---|---|---|
committer | Georg Brandl <georg@python.org> | 2014-10-30 21:25:41 (GMT) |
commit | 93a56cdc3798f66f82f8c3d538b479df8931752e (patch) | |
tree | 31b5320243b711763d7e5a92db2a2744188e0f9c /Doc/library/test.rst | |
parent | aea7f4a8e27a2f3a512a9cafbee25e00247f548b (diff) | |
download | cpython-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.rst | 6 |
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:: |