diff options
author | Tim Peters <tim.peters@gmail.com> | 2004-09-25 01:30:16 (GMT) |
---|---|---|
committer | Tim Peters <tim.peters@gmail.com> | 2004-09-25 01:30:16 (GMT) |
commit | 2dc820599bfb50e7e25dd47ba2d11244701d1a9f (patch) | |
tree | a416fc1e1c6fcd8eb0cc1cb4491d79aef2998a71 /Doc | |
parent | 39c5de0376aeacf6a853efe70fe12671ed63a5dd (diff) | |
download | cpython-2dc820599bfb50e7e25dd47ba2d11244701d1a9f.zip cpython-2dc820599bfb50e7e25dd47ba2d11244701d1a9f.tar.gz cpython-2dc820599bfb50e7e25dd47ba2d11244701d1a9f.tar.bz2 |
Since the doctest warnings section was reduced to one bullet point,
get rid of the itemize structure.
Diffstat (limited to 'Doc')
-rw-r--r-- | Doc/lib/libdoctest.tex | 16 |
1 files changed, 6 insertions, 10 deletions
diff --git a/Doc/lib/libdoctest.tex b/Doc/lib/libdoctest.tex index 4d55fec..1dab55f 100644 --- a/Doc/lib/libdoctest.tex +++ b/Doc/lib/libdoctest.tex @@ -712,14 +712,12 @@ can be useful. \subsubsection{Warnings\label{doctest-warnings}} -\begin{itemize} - -\item \module{doctest} is serious about requiring exact matches in expected - output. If even a single character doesn't match, the test fails. This - will probably surprise you a few times, as you learn exactly what Python - does and doesn't guarantee about output. For example, when printing a - dict, Python doesn't guarantee that the key-value pairs will be printed - in any particular order, so a test like +\module{doctest} is serious about requiring exact matches in expected +output. If even a single character doesn't match, the test fails. This +will probably surprise you a few times, as you learn exactly what Python +does and doesn't guarantee about output. For example, when printing a +dict, Python doesn't guarantee that the key-value pairs will be printed +in any particular order, so a test like % Hey! What happened to Monty Python examples? % Tim: ask Guido -- it's his example! @@ -788,8 +786,6 @@ often contrive doctest examples to produce numbers of that form: Simple fractions are also easier for people to understand, and that makes for better documentation. -\end{itemize} - \subsection{Basic API\label{doctest-basic-api}} The functions \function{testmod()} and \function{testfile()} provide a |