Commit f7f6de78 authored by Kazuhiko Shiozaki's avatar Kazuhiko Shiozaki

support iPython-0.11 (same as bec81709)

parent b43adf6c
...@@ -556,6 +556,10 @@ class ERP5TypeTestCaseMixin(ProcessingNodeTestCase, PortalTestCase): ...@@ -556,6 +556,10 @@ class ERP5TypeTestCaseMixin(ProcessingNodeTestCase, PortalTestCase):
"""Invoke debugger""" """Invoke debugger"""
try: # try ipython if available try: # try ipython if available
import IPython import IPython
try:
IPython.InteractiveShell()
tracer = IPython.core.debugger.Tracer()
except AttributeError: # for ipython-0.10 or before
IPython.Shell.IPShell(argv=[]) IPython.Shell.IPShell(argv=[])
tracer = IPython.Debugger.Tracer() tracer = IPython.Debugger.Tracer()
except ImportError: except ImportError:
...@@ -563,8 +567,12 @@ class ERP5TypeTestCaseMixin(ProcessingNodeTestCase, PortalTestCase): ...@@ -563,8 +567,12 @@ class ERP5TypeTestCaseMixin(ProcessingNodeTestCase, PortalTestCase):
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