Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Open sidebar
Rafael Monnerat
erp5
Commits
d8a0a8ed
Commit
d8a0a8ed
authored
1 month ago
by
Rafael Monnerat
Browse files
Options
Download
Email Patches
Plain Diff
ERP5Type/runUnitTest: Support ipython-8.0 or above.
API changed for Pdb() call after 8.0.0rc1 release.
parent
9664e694
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
1 deletion
+5
-1
product/ERP5Type/tests/runUnitTest.py
product/ERP5Type/tests/runUnitTest.py
+5
-1
No files found.
product/ERP5Type/tests/runUnitTest.py
View file @
d8a0a8ed
...
...
@@ -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
)
...
...
This diff is collapsed.
Click to expand it.
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment