Is there a way to automatically start the debugger at the point at which a unittest fails?
Right now I am just using pdb.set_trace() manually, but this is very tedio
Third party test framework enhancements generally seem to include the feature (nose and nose2 were already mentioned in other answers). Some more:
nose
nose2
pytest supports it.
pytest --pdb
Or if you use absl-py's absltest instead of unittest module:
absltest
unittest
name_of_test.py --pdb_post_mortem