I'm writing a literate programming document, example.txt, which mixes
text and code in ReST format:
This is my excellent module for making spam. It has
one public function, ``make_spam``, which takes a
single argument for how much spam to make:
from module import make_spam
Hi Steven,
On 2010-09-05 17:30, Steven D'Aprano wrote:
I run the doctests with:
python2.6 -m doctest examples.txt
and the first example passes, but the second fails with NameError:
make_spam not defined.
I run my doctests by calling
doctest.testfile(filename)
for each file in a
On Sun, 05 Sep 2010 18:41:15 +0200, Stefan Schwarzer wrote:
Hi Steven,
On 2010-09-05 17:30, Steven D'Aprano wrote:
I run the doctests with:
python2.6 -m doctest examples.txt
and the first example passes, but the second fails with NameError:
make_spam not defined.
I run my doctests