Python process won't quit

I use nosetests to run some tests. However, after the tests are over, the netnet process just sits there and will not work. Is there any need to diagnose this? Does Python have an object similar to sending Java kill -QUIT that will print a stack trace?

+7
python nosetests
source share
2 answers

You can enter a debugger and enter bt :

 import pdb; pdb.set_trace() 

Then you can perform the operation and see where it hangs.

+1
source share
 nosetests -vv -x -s --pdb test_foo 

where -x - "Stop testing after the first error or failure" and -pdb "Drop to the debugger if it crashes or errors"

Also see http://nose.readthedocs.org/en/latest/usage.html

+4
source share

All Articles