Commit 5fa2d1ea authored by Łukasz Nowak's avatar Łukasz Nowak

- use simpler implementation, only IPython is needed, not ipdb


git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@26540 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 86f3851a
...@@ -837,12 +837,14 @@ class ERP5TypeTestCase(PortalTestCase): ...@@ -837,12 +837,14 @@ class ERP5TypeTestCase(PortalTestCase):
raise raise
def stepPdb(self, sequence=None, sequence_list=None): def stepPdb(self, sequence=None, sequence_list=None):
try: """Invoke debugger"""
import ipdb as pdb try: # try ipython if available
import IPython
IPython.Shell.IPShell(argv=[])
tracer = IPython.Debugger.Tracer()
except ImportError: except ImportError:
import pdb from pdb import set_trace as tracer
pdb.set_trace() tracer()
pass
def stepTic(self, **kw): def stepTic(self, **kw):
""" """
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment