I'm writing some unit tests and would like to drop into the python debugger during one of the tests. I tried just adding:
import pdb
pdb.set_trace()
but that fails with
...
File "/home/chopps/net/w/vpp/test/test_iptfs.py", line 124, in
verify_encrypted
self.assert_equal(decrypt_pkt.src, self.pg1.remote_ip4)
File "/usr/lib/python2.7/bdb.py", line 49, in trace_dispatch
return self.dispatch_line(frame)
File "/usr/lib/python2.7/bdb.py", line 68, in dispatch_line
if self.quitting: raise BdbQuit
BdbQuit
The pdb.set_trace is at line 123 in verify_encrypted... I guess this probably
has something to do with how the tests are being run.
Is there some other way to drop into the python debugger during the running of
a unit test?
Thanks,
Chris.
signature.asc
Description: Message signed with OpenPGP
-=-=-=-=-=-=-=-=-=-=-=- Links: You receive all messages sent to this group. View/Reply Online (#13505): https://lists.fd.io/g/vpp-dev/message/13505 Mute This Topic: https://lists.fd.io/mt/32470050/21656 Group Owner: [email protected] Unsubscribe: https://lists.fd.io/g/vpp-dev/unsub [[email protected]] -=-=-=-=-=-=-=-=-=-=-=-
