]> granicus.if.org Git - python/commitdiff
#17282: Document unittest.main defaultTest argument.
authorR David Murray <rdmurray@bitdance.com>
Thu, 2 Jan 2014 18:38:02 +0000 (13:38 -0500)
committerR David Murray <rdmurray@bitdance.com>
Thu, 2 Jan 2014 18:38:02 +0000 (13:38 -0500)
Doc/library/unittest.rst

index 999b024e6965ee0a00e12f7ee6a4b987b244ff87..9d0bbe688ce5547602bd502c72b8950df08195e7 100644 (file)
@@ -1808,6 +1808,10 @@ Loading and running tests
       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.