Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
erp5
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Rafael Monnerat
erp5
Commits
3f2746ba
Commit
3f2746ba
authored
Jan 30, 2025
by
Rafael Monnerat
👻
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ERP5Type/runUnitTest: Support ipython-8.0 or above.
API changed for Pdb() call after 8.0.0rc1 release.
parent
5ac470f3
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 @
3f2746ba
...
...
@@ -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
)
...
...
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