doctest fails to see tests in decorated functions
Michele Simionato
michele.simionato at gmail.com
Sun Feb 15 00:35:49 EST 2009
On Feb 15, 6:31 am, Steven D'Aprano <st... at pearwood.info> wrote:
> Never mind, it was a PEBCAK error. I failed to notice that applying a
> decorator to a function shadows the functions docstring.
>
> Normally I would use functools.wraps, but I am currently limping along on a
> Python 2.4 installation here, which doesn't have it.
You may consider this: http://pypi.python.org/pypi/decorator
M.S.
More information about the Python-list
mailing list