unitests don't run under pdb

Amit Gupta emailamit at gmail.com
Wed Feb 20 15:08:32 EST 2008


Hi

I have a unitest file: If I do

python testname.py : the unitests runs as usual and I get the
following results:
----------------------------------------------------------------------
Ran 2 tests in 0.024s

OK
--------------------------------------------------------------------

However, if I do "python -m pdb testnames.py": I get
ython -m pdb testnames.py
> /s/nd6/amit/pyiglu/testnames.py(1)<module>()
-> import unittest
(Pdb) c

----------------------------------------------------------------------
Ran 0 tests in 0.000s

OK
-------------------------------------------------------------------



Anything else, I should be doing (python version 2.5.1)


Thanks!!



More information about the Python-list mailing list