Hello Amit,

> 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
> -------------------------------------------------------------------
IIRC unittest checks the __main__ module for tests to run. Once you
run python with "-m pdb" the __main__ module is pdb and not your
script.

HTH,
--
Miki <[EMAIL PROTECTED]>
http://pythonwise.blogspot.com
-- 
http://mail.python.org/mailman/listinfo/python-list

Reply via email to