[issue1108] Problem with doctest and decorated functions

Steven D'Aprano report at bugs.python.org
Sat Feb 14 03:06:20 CET 2009


Steven D'Aprano <steve at pearwood.info> added the comment:

For what it's worth, this bug appears to go back to at least Python 2.4,
and it affects functions using decorators even if they are defined in
the same module as the decorated function. I've applied the patch to my
2.4 installation, and it doesn't fix the issue. I'd like to request this
be reopened, because I don't believe the patch works as advertised.

I've attached a simple script which should demonstrate the issue. Run it
with "python doctestfail.py [-v]", and if it passes with no failures,
the bug still exists. I've tested it on 2.4 before and after the patch.
(Apologies for not having anything more recent at the moment.)

----------
nosy: +stevenjd
Added file: http://bugs.python.org/file13078/doctestfail.py

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


More information about the Python-bugs-list mailing list