Re: doctest fails to see tests in decorated functions

2009-02-14 Thread Michele Simionato
On Feb 15, 6:31 am, Steven D'Aprano 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'

Re: doctest fails to see tests in decorated functions

2009-02-14 Thread Steven D'Aprano
Steven D'Aprano wrote: > I've just spotted a bug in doctest that it fails to see tests inside > decorated functions. It's been reported before: > > http://bugs.python.org/issue1108 > > but the patch submitted doesn't work for me. Never mind, it was a PEBCAK error. I failed to notice that applyi

doctest fails to see tests in decorated functions

2009-02-13 Thread Steven D'Aprano
I've just spotted a bug in doctest that it fails to see tests inside decorated functions. It's been reported before: http://bugs.python.org/issue1108 but the patch submitted doesn't work for me. I have a test script on the page demonstrating the problem. Can anyone give me some clues as to a work