Alexander Belopolsky <belopol...@users.sourceforge.net> added the comment:
On Fri, Nov 5, 2010 at 3:34 AM, Georg Brandl <rep...@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. ---------- _______________________________________ Python tracker <rep...@bugs.python.org> <http://bugs.python.org/issue7061> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com