unittest / pdb tricks?
Sam Falkner
samf+usenet at frii.com
Tue Aug 28 16:24:57 EDT 2001
I'm doing a lot of work with the unittest module right now. I like
the default behavior of unittest.main(), where it runs as many tests
as it can, even if some fail.
But, what I also want is the option to be able to do "pdb.pm()" when a
test fails. Looking at the source for unittest.py, it doesn't look
like there's a way to have the failure "fail far enough" to run
pdb.pm().
Do other people do this? If so, what's an easy and clean way to do
it?
Thanks!
- Sam
More information about the Python-list
mailing list