Commit bec81709 authored by Kazuhiko Shiozaki's avatar Kazuhiko Shiozaki

quick hack to support iPython-0.11

parent eca133a9
......@@ -344,8 +344,12 @@ class DebugTestResult:
try:
# try ipython if available
import IPython
IPython.Shell.IPShell(argv=[])
p = IPython.Debugger.Pdb(color_scheme=__IPYTHON__.rc.colors)
try:
IPython.InteractiveShell()
p = IPython.core.debugger.Pdb()
except AttributeError: # for ipython-0.10 or before
IPython.Shell.IPShell(argv=[])
p = IPython.Debugger.Pdb(color_scheme=__IPYTHON__.rc.colors)
p.reset()
while tb.tb_next is not None:
tb = tb.tb_next
......
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