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

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


http://hg.python.org/cpython/rev/045e7a587f3c
changeset: 88259:045e7a587f3c
branch: 3.3
parent: 88257:b0d472e3ff42
user: R David Murray <rdmurray at bitdance.com>
date: Thu Jan 02 13:37:26 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
@@ -1801,6 +1801,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

AltStyle によって変換されたページ (->オリジナル) /