[issue12055] doctest not working on nested functions

Dave Abrahams report at bugs.python.org
Mon May 23 18:21:31 CEST 2011


Dave Abrahams <dave at boostpro.com> added the comment:

It's certainly much appreciated, but my tests have to run with a stock
python, so I worked around the problem  personally.  I just reported
this because I found (surprisingly, to me) that some of my tests had
been silently not-running, which seems like a bad feature of any
testing system ;=).

On Mon, May 23, 2011 at 12:15 PM, Baptiste Carvello
<report at bugs.python.org> wrote:
>
> Baptiste Carvello <devel at baptiste-carvello.net> added the comment:
>
> here is the patch for 2.7.
>
> Dave: I don't know if or when the patch will be accepted, as this is a new
> feature. In the meantime, you can easily patch your system. As the code changes
> are all in Python, you don't need to recompile. Going to your standard library
> directory and running a command like the following should do the trick:
>
> filterdiff -i '*/doctest.py' issue12055-27.diff | patch
>
> ----------
> Added file: http://bugs.python.org/file22085/issue12055-27.diff
>
> _______________________________________
> Python tracker <report at bugs.python.org>
> <http://bugs.python.org/issue12055>
> _______________________________________

----------

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue12055>
_______________________________________


More information about the Python-bugs-list mailing list