This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author pitrou
Recipients ezio.melotti, gvanrossum, michael.foord, pitrou, r.david.murray, rhettinger, tim.peters
Date 2014-06-12.20:59:12
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <>
doctest uses inspect.isfunction() to detect callable objects on which to detect docstrings. Unfortunately, this prevents running doctests on functions which have been decorated to return other types of callables (for example numba's @jit decorator). In the attached example file, the wrapped "bar" function does not have its doctest executed.

It would be useful for doctest to be more flexible here, although I'm not sure what the exact criterion should be.
Date User Action Args
2014-06-12 20:59:13pitrousetrecipients: + pitrou, gvanrossum, tim.peters, rhettinger, ezio.melotti, r.david.murray, michael.foord
2014-06-12 20:59:13pitrousetmessageid: <>
2014-06-12 20:59:12pitroulinkissue21740 messages
2014-06-12 20:59:12pitroucreate