[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]> <http://bugs.python.org/issue1108> __--- doctest.py.orig 2007-09-05 1

[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 i