[openstack-dev] [Quantum]Debug unit test using pdb

Jason Zhang bearovercloud at gmail.com
Fri Jun 7 23:32:57 UTC 2013


Hi,

I'd like to debug the quantum unit test case using the pdb, but it looks 
like I got the errors regarding the

stdin/stdout for i/o of pdb when I run the command as followings,

tox -e py27 -- quantum.tests.unit.test_debug_commands.TestDebugCommandsShell

Traceback (most recent call last):
   File "/opt/stack/quantum/quantum/tests/unit/test_debug_commands.py", line 417, in test_initialize_app_help_return
     sh.run(argv)
   File "/opt/stack/quantum/quantum/tests/unit/test_debug_commands.py", line 417, in test_initialize_app_help_return
     sh.run(argv)
   File "/usr/lib/python2.7/bdb.py", line 48, in trace_dispatch
     return self.dispatch_line(frame)
   File "/usr/lib/python2.7/bdb.py", line 67, in dispatch_line
     if self.quitting: raise BdbQuit
BdbQuit

Thanks in advance!

Best regards,

Jason

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstack.org/pipermail/openstack-dev/attachments/20130607/2ae3c22e/attachment.html>


More information about the OpenStack-dev mailing list