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
6e731b0a
Commit
6e731b0a
authored
Jan 02, 2014
by
R David Murray
Browse files
Options
Browse Files
Download
Plain Diff
Merge and update #17282: Document unittest.main defaultTest argument.
In 3.4 defaultTest can also be a list (see issue 15132).
parents
c22eaecd
12e930f3
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
0 deletions
+5
-0
Doc/library/unittest.rst
Doc/library/unittest.rst
+5
-0
No files found.
Doc/library/unittest.rst
View file @
6e731b0a
...
...
@@ -1966,6 +1966,11 @@ Loading and running tests
if __name__ == '__main__':
unittest.main(verbosity=2)
The *defaultTest* argument is either the name of a single test or an
iterable of test names 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