Message220384
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:13 | pitrou | set | recipients:
+ pitrou, gvanrossum, tim.peters, rhettinger, ezio.melotti, r.david.murray, michael.foord |
2014-06-12 20:59:13 | pitrou | set | messageid: <1402606753.04.0.326464066676.issue21740@psf.upfronthosting.co.za> |
2014-06-12 20:59:12 | pitrou | link | issue21740 messages |
2014-06-12 20:59:12 | pitrou | create | |
|