Commit 3f2746ba authored by Rafael Monnerat's avatar Rafael Monnerat

ERP5Type/runUnitTest: Support ipython-8.0 or above.

  API changed for Pdb() call after 8.0.0rc1 release.
parent 5ac470f3
......@@ -483,7 +483,11 @@ class DebugTestResult:
import IPython
try:
IPython.InteractiveShell()
p = IPython.core.debugger.Pdb(color_scheme='Linux')
# color scheme isnt present ipython-8.0 or above.
if IPython.release.version >= "8.0.0":
p = IPython.core.debugger.Pdb()
else:
p = IPython.core.debugger.Pdb(color_scheme='Linux')
except AttributeError: # for ipython-0.10 or before
IPython.Shell.IPShell(argv=[])
p = IPython.Debugger.Pdb(color_scheme=__IPYTHON__.rc.colors)
......
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