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
8278860e
Commit
8278860e
authored
Sep 13, 2004
by
Tim Peters
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Document testmod's new exclude_empty argument.
parent
958cc890
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
11 additions
and
3 deletions
+11
-3
Doc/lib/libdoctest.tex
Doc/lib/libdoctest.tex
+11
-3
No files found.
Doc/lib/libdoctest.tex
View file @
8278860e
...
...
@@ -525,7 +525,7 @@ are run.
globs
}
\optional
{
, verbose
}
\optional
{
,
isprivate
}
\optional
{
, report
}
\optional
{
,
optionflags
}
\optional
{
, extraglobs
}
\optional
{
,
raise
_
on
_
error
}}
raise
_
on
_
error
}
\optional
{
, exclude
_
empty
}
}
All arguments are optional, and all except for
\var
{
m
}
should be
specified in keyword form.
...
...
@@ -582,6 +582,14 @@ are run.
in an example. This allows failures to be post-mortem debugged.
Default behavior is to continue running examples.
Optional argument
\var
{
exclude
_
empty
}
defaults to false. If true,
objects for which no doctests are found are excluded from consideration.
The default is a backward compatibility hack, so that code still
using
\method
{
doctest.master.summarize()
}
in conjunction with
\function
{
testmod()
}
continues to get output for objects with no tests.
The
\var
{
exclude
_
empty
}
argument to the newer
\class
{
DocTestFinder
}
constructor defaults to true.
Optional argument
\var
{
isprivate
}
specifies a function used to
determine whether a name is private. The default function treats
all names as public.
\var
{
isprivate
}
can be set to
...
...
@@ -593,8 +601,8 @@ are run.
\versionchanged
[The parameter \var{optionflags} was added]
{
2.3
}
\versionchanged
[The parameters
\var
{
extraglobs
}
and
\var
{
raise
_
on
_
error
}
were added]
{
2.4
}
\versionchanged
[The parameters
\var
{
extraglobs
}
,
\var
{
raise
_
on
_
error
}
and
\var
{
exclude
_
empty
}
were added]
{
2.4
}
\end{funcdesc}
\begin{funcdesc}
{
testsource
}{
module, name
}
...
...
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