[Python-checkins] cpython (2.7): #17282: Document unittest.main defaultTest argument.

r.david.murray python-checkins at python.org
Thu Jan 2 19:44:52 CET 2014


http://hg.python.org/cpython/rev/69b5f6924553
changeset:   88260:69b5f6924553
branch:      2.7
parent:      88244:aeb70f2f6f38
user:        R David Murray <rdmurray at bitdance.com>
date:        Thu Jan 02 13:38:02 2014 -0500
summary:
  #17282: Document unittest.main defaultTest argument.

files:
  Doc/library/unittest.rst |  4 ++++
  1 files changed, 4 insertions(+), 0 deletions(-)


diff --git a/Doc/library/unittest.rst b/Doc/library/unittest.rst
--- a/Doc/library/unittest.rst
+++ b/Doc/library/unittest.rst
@@ -1808,6 +1808,10 @@
       if __name__ == '__main__':
           unittest.main(verbosity=2)
 
+   The *defaultTest* argument is the name of the test to run if no test names
+   are specified via *argv*.  If not specified or ``None`` and no test names are
+   provided via *argv*, all tests found in *module* are run.
+
    The *argv* argument can be a list of options passed to the program, with the
    first element being the program name.  If not specified or ``None``,
    the values of :data:`sys.argv` are used.

-- 
Repository URL: http://hg.python.org/cpython


More information about the Python-checkins mailing list