diff options
author | R David Murray <rdmurray@bitdance.com> | 2012-04-09 13:12:57 (GMT) |
---|---|---|
committer | R David Murray <rdmurray@bitdance.com> | 2012-04-09 13:12:57 (GMT) |
commit | f1cdb6086d40c5e9928fc21309cc2d0393a20f83 (patch) | |
tree | 19d19e14f36bad821066529b905a64441e1e4887 | |
parent | 78fc25c77f5d0bd1b8236c855b9b846cb93632e3 (diff) | |
download | cpython-f1cdb6086d40c5e9928fc21309cc2d0393a20f83.zip cpython-f1cdb6086d40c5e9928fc21309cc2d0393a20f83.tar.gz cpython-f1cdb6086d40c5e9928fc21309cc2d0393a20f83.tar.bz2 |
Reflow paragraph (not that it helped much).
-rw-r--r-- | Doc/library/test.rst | 19 |
1 files changed, 9 insertions, 10 deletions
diff --git a/Doc/library/test.rst b/Doc/library/test.rst index af9ce45..152b7b1 100644 --- a/Doc/library/test.rst +++ b/Doc/library/test.rst @@ -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 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 -test.regrtest` used in previous Python versions still works). -Running the script by itself automatically starts running all regression -tests in the :mod:`test` package. It does this by finding all modules in the -package whose name starts with ``test_``, importing them, and executing the -function :func:`test_main` if present or loading the tests via -unittest.TestLoader.loadTestsFromModule if ``test_main`` does not exist. -The names of tests to execute may also -be passed to the script. Specifying a single regression test (:program:`python --m test test_spam`) will minimize output and only print -whether the test passed or failed. +test.regrtest` used in previous Python versions still works). Running the +script by itself automatically starts running all regression tests in the +:mod:`test` package. It does this by finding all modules in the package whose +name starts with ``test_``, importing them, and executing the function +:func:`test_main` if present or loading the tests via +unittest.TestLoader.loadTestsFromModule if ``test_main`` does not exist. The +names of tests to execute may also be passed to the script. Specifying a single +regression test (:program:`python -m test test_spam`) will minimize output and +only print whether the test passed or failed. 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 |