summaryrefslogtreecommitdiffstats
path: root/Doc/lib/libdoctest.tex
diff options
context:
space:
mode:
authorEdward Loper <edloper@gradient.cis.upenn.edu>2004-09-27 03:30:44 (GMT)
committerEdward Loper <edloper@gradient.cis.upenn.edu>2004-09-27 03:30:44 (GMT)
commit456ff916647d43c20e51ed14f139e9c26296d3c2 (patch)
tree62c5cb43405ca9255cd09be20744d2077dc1747a /Doc/lib/libdoctest.tex
parent36ee8ce3734b5d360eb8d0579e853bc0c6c30918 (diff)
downloadcpython-456ff916647d43c20e51ed14f139e9c26296d3c2.zip
cpython-456ff916647d43c20e51ed14f139e9c26296d3c2.tar.gz
cpython-456ff916647d43c20e51ed14f139e9c26296d3c2.tar.bz2
- Fixed typo in multi-line exception example
- Fixed indentation for a verbatim block
Diffstat (limited to 'Doc/lib/libdoctest.tex')
-rw-r--r--Doc/lib/libdoctest.tex12
1 files changed, 6 insertions, 6 deletions
diff --git a/Doc/lib/libdoctest.tex b/Doc/lib/libdoctest.tex
index 2381880..81a472c 100644
--- a/Doc/lib/libdoctest.tex
+++ b/Doc/lib/libdoctest.tex
@@ -443,7 +443,7 @@ last line of a traceback, but can extend across multiple lines if the
exception has a multi-line detail:
\begin{verbatim}
->>> raise ValueError('multi\n line\ndetail')
+>>> raise ValueError('multi\n line\ndetail')
Traceback (most recent call last):
File "<stdin>", line 1, in ?
ValueError: multi
@@ -460,7 +460,7 @@ significant documentation value to the example. So the last example
is probably better as:
\begin{verbatim}
->>> raise ValueError('multi\n line\ndetail')
+>>> raise ValueError('multi\n line\ndetail')
Traceback (most recent call last):
...
ValueError: multi
@@ -1699,10 +1699,10 @@ the synthesized code under the debugger:
\function{script_from_examples()} above. For example, if module
\file{a.py} contains a top-level function \function{f()}, then
- \begin{verbatim}
- import a, doctest
- print doctest.testsource(a, "a.f")
- \end{verbatim}
+\begin{verbatim}
+import a, doctest
+print doctest.testsource(a, "a.f")
+\end{verbatim}
prints a script version of function \function{f()}'s docstring,
with doctests converted to code, and the rest placed in comments.