[Python-checkins] python/dist/src/Doc/lib libdoctest.tex,1.39,1.40
tim_one at users.sourceforge.net
tim_one at users.sourceforge.net
Mon Aug 30 18:19:27 CEST 2004
Update of /cvsroot/python/python/dist/src/Doc/lib
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv31048/Doc/lib
Modified Files:
libdoctest.tex
Log Message:
The distinction between comparison flags and reporting flags isn't unique
to unittest, so make it official: new module constants COMPARISON_FLAGS
and REPORTING_FLAGS, which are bitmasks or'ing together the relevant
individual option flags.
set_unittest_reportflags(): Reworked to use REPORTING_FLAGS, and
simplified overly complicated flag logic.
class FakeModule: Removed this; neither documented nor used.
Index: libdoctest.tex
===================================================================
RCS file: /cvsroot/python/python/dist/src/Doc/lib/libdoctest.tex,v
retrieving revision 1.39
retrieving revision 1.40
diff -u -d -r1.39 -r1.40
--- libdoctest.tex 26 Aug 2004 04:52:46 -0000 1.39
+++ libdoctest.tex 30 Aug 2004 16:19:24 -0000 1.40
@@ -365,6 +365,10 @@
is prone to in regular expressions.
\end{datadesc}
+\begin{datadesc}{COMPARISON_FLAGS}
+ A bitmask or'ing together all the comparison flags above.
+\end{datadesc}
+
The second group of options controls how test failures are reported:
\begin{datadesc}{REPORT_UDIFF}
@@ -398,6 +402,10 @@
failures reported; only the output is suppressed.
\end{datadesc}
+\begin{datadesc}{REPORTING_FLAGS}
+ A bitmask or'ing together all the reporting flags above.
+\end{datadesc}
+
A "doctest directive" is a trailing Python comment on a line of a doctest
example:
@@ -456,7 +464,8 @@
\versionchanged[Constants \constant{DONT_ACCEPT_BLANKLINE},
\constant{NORMALIZE_WHITESPACE}, \constant{ELLIPSIS},
\constant{REPORT_UDIFF}, \constant{REPORT_CDIFF},
- \constant{REPORT_NDIFF}, and \constant{REPORT_ONLY_FIRST_FAILURE}
+ \constant{REPORT_NDIFF}, \constant{REPORT_ONLY_FIRST_FAILURE},
+ \constant{COMPARISON_FLAGS} and \constant{REPORTING_FLAGS}
were added; by default \code{<BLANKLINE>} in expected output
matches an empty line in actual output; and doctest directives
were added]{2.4}
More information about the Python-checkins
mailing list