Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 76338ec

Browse files
committed
Rewrap long lines + minor edits
1 parent 8acb67c commit 76338ec

1 file changed

Lines changed: 11 additions & 11 deletions

File tree

Doc/library/unittest.rst

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -191,7 +191,7 @@ documentation explores the full feature set from first principles.
191191

192192
.. _unittest-command-line-interface:
193193

194-
Command Line Interface
194+
Command-Line Interface
195195
----------------------
196196

197197
The unittest module can be used from the command line to run tests from
@@ -221,8 +221,8 @@ For a list of all the command-line options::
221221
not modules or classes.
222222

223223

224-
failfast, catch and buffer command-line options
225-
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
224+
Command-line options
225+
~~~~~~~~~~~~~~~~~~~~
226226

227227
:program:`unittest` supports these command-line options:
228228

@@ -247,7 +247,8 @@ failfast, catch and buffer command-line options
247247
Stop the test run on the first error or failure.
248248

249249
.. versionadded:: 3.2
250-
The command-line options :option:`-c`, :option:`-b` and :option:`-f` were added.
250+
The command-line options :option:`-b`, :option:`-c` and :option:`-f`
251+
were added.
251252

252253
The command line can also be used for test discovery, for running all of the
253254
tests in a project or just a subset.
@@ -1891,7 +1892,7 @@ Loading and running tests
18911892
>>> main(module='test_module', exit=False)
18921893

18931894
The ``failfast``, ``catchbreak`` and ``buffer`` parameters have the same
1894-
effect as the `failfast, catch and buffer command-line options`_.
1895+
effect as the same-name `command-line options`_.
18951896

18961897
Calling ``main`` actually returns an instance of the ``TestProgram`` class.
18971898
This stores the result of the tests run as the ``result`` attribute.
@@ -2055,12 +2056,11 @@ Signal Handling
20552056
---------------
20562057

20572058
The :option:`-c/--catch <unittest -c>` command-line option to unittest,
2058-
along with the ``catchbreak``
2059-
parameter to :func:`unittest.main()`, provide more friendly handling of
2060-
control-C during a test run. With catch break behavior enabled control-C will
2061-
allow the currently running test to complete, and the test run will then end
2062-
and report all the results so far. A second control-c will raise a
2063-
:exc:`KeyboardInterrupt` in the usual way.
2059+
along with the ``catchbreak`` parameter to :func:`unittest.main()`, provide
2060+
more friendly handling of control-C during a test run. With catch break
2061+
behavior enabled control-C will allow the currently running test to complete,
2062+
and the test run will then end and report all the results so far. A second
2063+
control-c will raise a :exc:`KeyboardInterrupt` in the usual way.
20642064

20652065
The control-c handling signal handler attempts to remain compatible with code or
20662066
tests that install their own :const:`signal.SIGINT` handler. If the ``unittest``

0 commit comments

Comments
 (0)