Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 12e930f

Browse files
committed
#17282: Document unittest.main defaultTest argument.
1 parent 3e6ab17 commit 12e930f

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

Doc/library/unittest.rst

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1801,6 +1801,10 @@ Loading and running tests
18011801
if __name__ == '__main__':
18021802
unittest.main(verbosity=2)
18031803

1804+
The *defaultTest* argument is the name of the test to run if no test names
1805+
are specified via *argv*. If not specified or ``None`` and no test names are
1806+
provided via *argv*, all tests found in *module* are run.
1807+
18041808
The *argv* argument can be a list of options passed to the program, with the
18051809
first element being the program name. If not specified or ``None``,
18061810
the values of :data:`sys.argv` are used.

0 commit comments

Comments
 (0)