Message120501
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. |
|
Date |
User |
Action |
Args |
2010-11-05 14:43:44 | belopolsky | set | recipients:
+ belopolsky, georg.brandl, terry.reedy, gregorlingl, eric.araujo, docs@python |
2010-11-05 14:43:43 | belopolsky | link | issue7061 messages |
2010-11-05 14:43:42 | belopolsky | create | |
|