This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author belopolsky
Recipients belopolsky, docs@python, eric.araujo, georg.brandl, gregorlingl, terry.reedy
Date 2010-11-05.14:43:42
SpamBayes Score 8.067254e-07
Marked as misclassified No
Message-id <AANLkTim0k85nY9F_9WFU=A4wyEq_J5QjZoVZ+j_2Z762@mail.gmail.com>
In-reply-to <1288942452.88.0.931355211696.issue7061@psf.upfronthosting.co.za>
Content
On Fri, Nov 5, 2010 at 3:34 AM, Georg Brandl <report@bugs.python.org> wrote:
..
> Why shouldn't global function doctests be runnable?

They should - I just couldn't figure out a better hack that would work
for both mathods and functions.  Note that functions are
auto-generated in turtle from Screen and Turtle methods.  The doctests
are just method doctests with turtle. or screen. prefix dropped.  In
order to remove dependency between doctests, I create a new turtle for
each test and assign it to global "turtle" variable.  For some reason
similar approach did not work for functions.  I'll keep trying,
though.

On the other hand, since function doctests are auto-generated from
method doctests, there is little to be gained from running them
separately.
History
Date User Action Args
2010-11-05 14:43:44belopolskysetrecipients: + belopolsky, georg.brandl, terry.reedy, gregorlingl, eric.araujo, docs@python
2010-11-05 14:43:43belopolskylinkissue7061 messages
2010-11-05 14:43:42belopolskycreate