[Zope] Debugging doctests

Stephan Richter srichter at cosmos.phy.tufts.edu
Thu Feb 23 07:56:33 EST 2006


On Thursday 23 February 2006 06:53, Lennart Regebro wrote:
> Ah, not in Zope 2.9 it seems. Is this expected, or an I doing something
> wrong? I'm running the Five tests with bin/zopectl test --dir Products/Five
> as usual, and having a set_trace() in the doctests behaves exactly as with
> the old test runner, where you have to debug though the doctest running as
> well, which makes it pretty useless...

How do you want to use the debugger? I run the tests, if the set_trace() 
occurs it throws me to the prompt and all is fine. I can use the debugger as 
usual.

There used to be an issue with the debugger not displaying anything, since 
doctests mess with stdout and that has been fixed. This is what Benji and I 
were talking about.

Regards,
Stephan
-- 
Stephan Richter
CBU Physics & Chemistry (B.S.) / Tufts Physics (Ph.D. student)
Web2k - Web Software Design, Development and Training


More information about the Zope mailing list