[Python-checkins] python/dist/src/Doc/lib libdoctest.tex,1.41,1.42
tim_one at users.sourceforge.net
tim_one at users.sourceforge.net
Mon Sep 13 17:03:19 CEST 2004
Update of /cvsroot/python/python/dist/src/Doc/lib
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv4194/Doc/lib
Modified Files:
libdoctest.tex
Log Message:
Document testmod's new exclude_empty argument.
Index: libdoctest.tex
===================================================================
RCS file: /cvsroot/python/python/dist/src/Doc/lib/libdoctest.tex,v
retrieving revision 1.41
retrieving revision 1.42
diff -u -d -r1.41 -r1.42
--- libdoctest.tex 4 Sep 2004 17:21:02 -0000 1.41
+++ libdoctest.tex 13 Sep 2004 15:03:17 -0000 1.42
@@ -525,7 +525,7 @@
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 @@
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 @@
\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}
More information about the Python-checkins
mailing list