Éric Araujo mer...@netwok.org added the comment:
2.7 and 3.2 are the present, but we work for the future :) Thanks for the
patch.
I’m adding to the nosy list the developers who committed the most recent
changes to doctest so that someone can decide whether this new feature is
desirable and
Changes by Éric Araujo mer...@netwok.org:
--
stage: - needs patch
versions: +Python 3.1, Python 3.2, Python 3.3 -Python 2.6
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue12055
___
Éric Araujo mer...@netwok.org added the comment:
From http://docs.python.org/dev/library/doctest#which-docstrings-are-examined :
“The module docstring, and all function, class and method docstrings are
searched. Objects imported into the module are not searched. [...] Any classes
found are
Baptiste Carvello de...@baptiste-carvello.net added the comment:
Hello,
the attached patch adds the requested feature to 3.2 (the patch is based on
6d67931c63f9), with appropriate doc changes and tests for the new behaviour.
It does not apply to 2.7, so I'll send another patch for that soon.
Éric Araujo mer...@netwok.org added the comment:
New features don’t go in stable versions.
--
type: - feature request
versions: +Python 3.3 -Python 2.6, Python 2.7
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue12055
Baptiste Carvello de...@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
Dave Abrahams d...@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
Baptiste Carvello de...@baptiste-carvello.net added the comment:
Eric: my bad, I guess I was living in the past, before 3.2 was released :-)
Anyway, my 3.2 patch applies to default (6354b4ceba1d), with just a one-line
offset for test_doctest.py. All tests pass.
By the way, my 2.7 patch was
New submission from Dave Abrahams d...@boostpro.com:
The attached file demonstrates
--
components: Library (Lib)
files: bug.py
messages: 135770
nosy: dabrahams
priority: normal
severity: normal
status: open
title: doctest not working on nested functions
versions: Python 2.6, Python 2.7