Commit f1cdb608 authored by R David Murray's avatar R David Murray

Reflow paragraph (not that it helped much).

parent 78fc25c7
...@@ -160,16 +160,15 @@ Running tests using the command-line interface ...@@ -160,16 +160,15 @@ Running tests using the command-line interface
The :mod:`test` package can be run as a script to drive Python's regression The :mod:`test` package can be run as a script to drive Python's regression
test suite, thanks to the :option:`-m` option: :program:`python -m test`. Under test suite, thanks to the :option:`-m` option: :program:`python -m test`. Under
the hood, it uses :mod:`test.regrtest`; the call :program:`python -m the hood, it uses :mod:`test.regrtest`; the call :program:`python -m
test.regrtest` used in previous Python versions still works). test.regrtest` used in previous Python versions still works). Running the
Running the script by itself automatically starts running all regression script by itself automatically starts running all regression tests in the
tests in the :mod:`test` package. It does this by finding all modules in the :mod:`test` package. It does this by finding all modules in the package whose
package whose name starts with ``test_``, importing them, and executing the name starts with ``test_``, importing them, and executing the function
function :func:`test_main` if present or loading the tests via :func:`test_main` if present or loading the tests via
unittest.TestLoader.loadTestsFromModule if ``test_main`` does not exist. unittest.TestLoader.loadTestsFromModule if ``test_main`` does not exist. The
The names of tests to execute may also names of tests to execute may also be passed to the script. Specifying a single
be passed to the script. Specifying a single regression test (:program:`python regression test (:program:`python -m test test_spam`) will minimize output and
-m test test_spam`) will minimize output and only print only print whether the test passed or failed.
whether the test passed or failed.
Running :mod:`test` directly allows what resources are available for Running :mod:`test` directly allows what resources are available for
tests to use to be set. You do this by using the ``-u`` command-line tests to use to be set. You do this by using the ``-u`` command-line
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment