summaryrefslogtreecommitdiffstats
path: root/Doc/lib/libdoctest.tex
diff options
context:
space:
mode:
authorTim Peters <tim.peters@gmail.com>2004-08-13 01:49:12 (GMT)
committerTim Peters <tim.peters@gmail.com>2004-08-13 01:49:12 (GMT)
commit2603960525f8921436893e3c416bc0321386bf22 (patch)
treea57fd80f9fd00bd5bf29b5a13dd4284fb556806c /Doc/lib/libdoctest.tex
parent8a3b69ca8f1195989d11636b03a77ba7dde5ddd2 (diff)
downloadcpython-2603960525f8921436893e3c416bc0321386bf22.zip
cpython-2603960525f8921436893e3c416bc0321386bf22.tar.gz
cpython-2603960525f8921436893e3c416bc0321386bf22.tar.bz2
Markup fiddling.
Diffstat (limited to 'Doc/lib/libdoctest.tex')
-rw-r--r--Doc/lib/libdoctest.tex14
1 files changed, 7 insertions, 7 deletions
diff --git a/Doc/lib/libdoctest.tex b/Doc/lib/libdoctest.tex
index 222ac3a..e5b637a 100644
--- a/Doc/lib/libdoctest.tex
+++ b/Doc/lib/libdoctest.tex
@@ -159,7 +159,7 @@ python M.py
This won't display anything unless an example fails, in which case the
failing example(s) and the cause(s) of the failure(s) are printed to stdout,
and the final line of output is
-\\code{'***Test Failed*** \var{N} failures.'}, where \var{N} is the
+\samp{'***Test Failed*** \var{N} failures.'}, where \var{N} is the
number of examples that failed.
Run it with the \programopt{-v} switch instead:
@@ -203,7 +203,7 @@ attempted.
Only docstrings attached to objects belonging to module \var{m} are
searched.
- Return \code{(\var{failure_count}, \var{test_count})}.
+ Return \samp{(\var{failure_count}, \var{test_count})}.
Optional argument \var{name} gives the name of the module; by default,
or if \code{None}, \code{\var{m}.__name__} is used.
@@ -227,7 +227,7 @@ attempted.
Optional argument \var{verbose} prints lots of stuff if true, and prints
only failures if false; by default, or if \code{None}, it's true
- if and only if \code{'-v'} is in \code{\module{sys}.argv}.
+ if and only if \code{'-v'} is in \code{sys.argv}.
Optional argument \var{report} prints a summary at the end when true,
else prints nothing at the end. In verbose mode, the summary is
@@ -245,7 +245,7 @@ attempted.
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
- \code{\module{doctest}.is_private} to skip over names that are
+ \code{doctest.is_private} to skip over names that are
private according to Python's underscore naming convention.
\deprecated{2.4}{\var{isprivate} was a stupid idea -- don't use it.
If you need to skip tests based on name, filter the list returned by
@@ -287,7 +287,7 @@ Any classes found are recursively searched similarly, to test docstrings in
their contained methods and nested classes.
\versionchanged[A "private name" concept is deprecated and no longer
- documented.]{2.4}
+ documented]{2.4}
\subsection{What's the Execution Context?}
@@ -366,7 +366,7 @@ also be used in doctest directives.
can match any substring in the actual output. This includes
substrings that span line boundaries, so it's best to keep usage of
this simple. Complicated uses can lead to the same kinds of
- surprises that \code{.*} is prone to in regular expressions.
+ surprises that \regexp{.*} is prone to in regular expressions.
\end{datadesc}
\begin{datadesc}{UNIFIED_DIFF}
@@ -384,7 +384,7 @@ also be used in doctest directives.
\constant{NORMALIZE_WHITESPACE}, \constant{ELLIPSIS},
\constant{UNIFIED_DIFF}, and \constant{CONTEXT_DIFF}
were added, and \code{<BLANKLINE>} in expected output matches
- an empty line in actual output by default.]{2.4}
+ an empty line in actual output by default]{2.4}
\subsection{Advanced Usage}