Commit f7f6de78 authored by Kazuhiko Shiozaki's avatar Kazuhiko Shiozaki

support iPython-0.11 (same as bec81709)

parent b43adf6c
......@@ -556,15 +556,23 @@ class ERP5TypeTestCaseMixin(ProcessingNodeTestCase, PortalTestCase):
"""Invoke debugger"""
try: # try ipython if available
import IPython
IPython.Shell.IPShell(argv=[])
tracer = IPython.Debugger.Tracer()
try:
IPython.InteractiveShell()
tracer = IPython.core.debugger.Tracer()
except AttributeError: # for ipython-0.10 or before
IPython.Shell.IPShell(argv=[])
tracer = IPython.Debugger.Tracer()
except ImportError:
from pdb import set_trace as tracer
tracer()
def stepIPython(self, sequence=None, sequence_list=None):
import IPython.Shell
IPython.Shell.IPShellEmbed(())()
import IPython
try:
ipshell = IPython.frontend.terminal.embed.InteractiveShellEmbed()
except AttributeError: # for ipython-0.10 or before
ipshell = IPython.Shell.IPShellEmbed(())
ipshell()
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