summaryrefslogtreecommitdiffstats
path: root/Doc
diff options
context:
space:
mode:
authorEdward Loper <edloper@gradient.cis.upenn.edu>2004-09-27 04:08:20 (GMT)
committerEdward Loper <edloper@gradient.cis.upenn.edu>2004-09-27 04:08:20 (GMT)
commita4c6a8522c5033cc6627cb8b0cfc81c75711afee (patch)
tree9167e7c96daf0f6b26a7cd0b30fc97afdd62a634 /Doc
parent498a1868e72c2e3ac58fd252d2aea7a256923690 (diff)
downloadcpython-a4c6a8522c5033cc6627cb8b0cfc81c75711afee.zip
cpython-a4c6a8522c5033cc6627cb8b0cfc81c75711afee.tar.gz
cpython-a4c6a8522c5033cc6627cb8b0cfc81c75711afee.tar.bz2
- Added a "parser" option to testfile() and DocFileTest().
Diffstat (limited to 'Doc')
-rw-r--r--Doc/lib/libdoctest.tex11
1 files changed, 10 insertions, 1 deletions
diff --git a/Doc/lib/libdoctest.tex b/Doc/lib/libdoctest.tex
index 81a472c..2635486 100644
--- a/Doc/lib/libdoctest.tex
+++ b/Doc/lib/libdoctest.tex
@@ -817,7 +817,8 @@ sections \ref{doctest-simple-testmod} and
name}\optional{, package}\optional{,
globs}\optional{, verbose}\optional{,
report}\optional{, optionflags}\optional{,
- extraglobs}\optional{, raise_on_error}}
+ extraglobs}\optional{, raise_on_error}\optional{,
+ parser}}
All arguments except \var{filename} are optional, and should be
specified in keyword form.
@@ -886,6 +887,10 @@ sections \ref{doctest-simple-testmod} and
in an example. This allows failures to be post-mortem debugged.
Default behavior is to continue running examples.
+ Optional argument \var{parser} specifies a \class{DocTestParser} (or
+ subclass) that should be used to extract tests from the files. It
+ defaults to a normal parser (i.e., \code{\class{DocTestParser}()}).
+
\versionadded{2.4}
\end{funcdesc}
@@ -1065,6 +1070,10 @@ instances from text files and modules with doctests:
See function \function{set_unittest_reportflags()} below for
a better way to set reporting options.
+ Optional argument \var{parser} specifies a \class{DocTestParser} (or
+ subclass) that should be used to extract tests from the files. It
+ defaults to a normal parser (i.e., \code{\class{DocTestParser}()}).
+
\versionadded{2.4}
\end{funcdesc}