diff options
author | Fred Drake <fdrake@acm.org> | 2001-06-11 14:55:01 (GMT) |
---|---|---|
committer | Fred Drake <fdrake@acm.org> | 2001-06-11 14:55:01 (GMT) |
commit | c115835457b6aeae603b4fbef315dc84f9f519d7 (patch) | |
tree | eff2fbee70fc2e12ff1a173cc587154f52bddc3c /Doc | |
parent | c533edceb1c028f7af8cd6fea3962316e24a562a (diff) | |
download | cpython-c115835457b6aeae603b4fbef315dc84f9f519d7.zip cpython-c115835457b6aeae603b4fbef315dc84f9f519d7.tar.gz cpython-c115835457b6aeae603b4fbef315dc84f9f519d7.tar.bz2 |
Fix recent changes so that this section will format again.
Diffstat (limited to 'Doc')
-rw-r--r-- | Doc/lib/libdoctest.tex | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/Doc/lib/libdoctest.tex b/Doc/lib/libdoctest.tex index 30833da..9b99b9d 100644 --- a/Doc/lib/libdoctest.tex +++ b/Doc/lib/libdoctest.tex @@ -406,18 +406,19 @@ 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{enumerate} \item Be careful if you have code that must only execute once. If you have module-level code that must only execute once, a more foolproof -definition of \function{_test} is +definition of \function{_test()} is \begin{verbatim} def _test(): import doctest, sys doctest.testmod(sys.modules["__main__"]) \end{verbatim} +\end{enumerate} + \subsection{Soapbox} |