how does one use pdb and doctest.testmod(raise_on_error=True)?

Emin.shopper Martinian.shopper emin.shopper at gmail.com
Tue Jun 19 16:10:36 EDT 2007


Dear Experts,

How does one use pdb and doctest.testmod(raise_on_error=True)? What I would
like to happen is that when a doctest fails (e.g., by raising an exception),
I can do import pdb; pdb.pm() to figure out what went wrong. But when I do
pdb.pm() I end up in doctest.DebugRunner.report_unexpected_exception and
can't see the actual code in my module which failed.

Thanks,
-Emin
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/python-list/attachments/20070619/baed9e02/attachment.html>


More information about the Python-list mailing list