pydb output vanishes when running nosetests doctests

Diez B. Roggisch deets at nospam.web.de
Mon May 18 13:35:52 EDT 2009


jcervidae wrote:

> Hi Pythonistas:
> 
> When pydb.debugger() is launched from within my code or for some other
> reason pydb starts from inside a nosetests or doctest, I do not see
> any output from it. It appears the test has hung but it hasn't. If I
> type commands pydb obeys them I just can't see the results. How can I
> stop this? It means I have to make minor little programs to re-create
> problems the tests were designed to catch in order to debug.

Use the "-s"-option which prevents nose from capturing the stdout and not
printing it immediately.

Diez



More information about the Python-list mailing list