doctest fails to see tests in decorated functions
michele.simionato at gmail.com
Sun Feb 15 06:35:49 CET 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
More information about the Python-list