Jonathan <jonathan.cervi...@gmail.com> added the comment: #!/usr/bin/env python # This does what you want. Change pydb for pdb if you prefer it. import pydb import doctest import sys sys.excepthook = pydb.exception_hook try: doctest.testfile("story.txt",verbose=False,raise_on_error=True) except doctest.UnexpectedException, failure: pass exc_info = failure.exc_info raise exc_info[0], exc_info[1], exc_info[2]
---------- nosy: +jonathan.cervidae _______________________________________ Python tracker <rep...@bugs.python.org> <http://bugs.python.org/issue4938> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com