Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
C
cpython
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
cpython
Commits
12e930f3
Commit
12e930f3
authored
Jan 02, 2014
by
R David Murray
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
#17282: Document unittest.main defaultTest argument.
parent
3e6ab171
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
0 deletions
+4
-0
Doc/library/unittest.rst
Doc/library/unittest.rst
+4
-0
No files found.
Doc/library/unittest.rst
View file @
12e930f3
...
...
@@ -1801,6 +1801,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.
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment