From: Fred Drake Date: Mon, 11 Jun 2001 14:55:01 +0000 (+0000) Subject: Fix recent changes so that this section will format again. X-Git-Tag: v2.2a3~1583 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=c115835457b6aeae603b4fbef315dc84f9f519d7;p=thirdparty%2FPython%2Fcpython.git Fix recent changes so that this section will format again. --- diff --git a/Doc/lib/libdoctest.tex b/Doc/lib/libdoctest.tex index 30833da181a1..9b99b9d51d25 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}