[Zope-dev] BdbQuit and the testrunner

Fred Drake fdrake at gmail.com
Tue Jul 22 15:23:09 EDT 2008


I often find that I debug problems by inserting a pdb.set_trace() in
code, and then quitting the debugger with "q" once I've gathered
information I need to make code changes.  This causes a BdbQuit
exception to be raised and propagated to the test runner.  The
resulting traceback isn't actually useful.

I'd like to change the test runner to capture BdbQuit and print a
message to stdout before exiting instead of dumping the traceback.

Any reason this would be a bad idea?


 -Fred

-- 
Fred L. Drake, Jr. <fdrake at gmail.com>
"Chaos is the score upon which reality is written." --Henry Miller


More information about the Zope-Dev mailing list