[issue1108] Problem with doctest and decorated functions

2009-02-14 Thread Steven D'Aprano
Steven D'Aprano added the comment: Earlier I wrote: "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." Nevermind, I withdraw the request. I believe I was mislead due to the

[issue1108] Problem with doctest and decorated functions

2009-02-13 Thread Steven D'Aprano
Steven D'Aprano 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

[issue1108] Problem with doctest and decorated functions

2008-11-18 Thread Skip Montanaro
Changes by Skip Montanaro <[EMAIL PROTECTED]>: -- stage: patch review -> committed/rejected ___ Python tracker <[EMAIL PROTECTED]> ___ _

[issue1108] Problem with doctest and decorated functions

2008-11-18 Thread Skip Montanaro
Skip Montanaro <[EMAIL PROTECTED]> added the comment: I applied this patch to my trunk sandbox. It seems to solve the problem I just encountered where doctests are hidden in decorated functions & tests pass. Checked in as r67277. Should be backported to 2.6 and forward ported to 3.0.

[issue1108] Problem with doctest and decorated functions

2007-09-17 Thread Sean Reifschneider
Changes by Sean Reifschneider: -- assignee: -> tim_one nosy: +tim_one priority: -> normal __ Tracker <[EMAIL PROTECTED]> __ ___ Python-bugs-li

[issue1108] Problem with doctest and decorated functions

2007-09-06 Thread Daniel Larsson
Daniel Larsson added the comment: Here's a patch that alters the order of checks in DocTestFinder._from_module __ Tracker <[EMAIL PROTECTED]> __--- doctest.py.orig 2007-09-05 17:14:55.0 +02

[issue1108] Problem with doctest and decorated functions

2007-09-05 Thread Daniel Larsson
New submission from Daniel Larsson: Seems like doctest won't recognize functions inside the module under test are actually in that module, if the function is decorated by a decorator that wraps the function in an externally defined function, such as in this silly example: # decorator.py import f