[issue21740] doctest doesn't allow duck-typing callables

Claudiu Popa report at bugs.python.org
Thu Jul 3 12:25:35 CEST 2014


Claudiu Popa added the comment:

Here's a test patch which uses inspect.unwrap. Unfortunately, I can't test with numba, so I don't know if it works for that, but any decorated function which uses `functools.update_wrapper` or `wraps` should be detected by doctest.

----------
keywords: +patch
Added file: http://bugs.python.org/file35838/issue21740.patch

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


More information about the Python-bugs-list mailing list