I use pytest for my test suite. During error detection in complex inter-component testing, I would like to place import ipdb; ipdb.set_trace() import ipdb; ipdb.set_trace() in the middle of my code to allow me to debug it.
However, since the pytest sys.stdin / sys.stdout ipdb traps fail. How can I use ipdb during testing with pytest.
I am not interested in switching to pdb or ipdb after a failure, but to place breaks anywhere in the code and be able to debug it there before the failure occurs.
manu Apr 15 '13 at 19:05 2013-04-15 19:05
source share