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