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
nexedi
erp5
Commits
382c8171
Commit
382c8171
authored
2 years ago
by
Kazuhiko Shiozaki
Committed by
Arnaud Fontaine
2 years ago
Browse files
Options
Download
Email Patches
Plain Diff
py3: StandardError does not exist.
parent
4553fd97
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
0 deletions
+2
-0
product/ERP5Type/tests/ERP5TypeTestCase.py
product/ERP5Type/tests/ERP5TypeTestCase.py
+2
-0
No files found.
product/ERP5Type/tests/ERP5TypeTestCase.py
View file @
382c8171
...
...
@@ -40,6 +40,8 @@ except ImportError:
from
types
import
FunctionType
as
function
from
zope.globalrequest
import
getRequest
import
six
if
six
.
PY3
:
StandardError
=
Exception
original_get_request
=
function
(
getRequest
.
__code__
,
getRequest
.
__globals__
)
from
Testing.ZopeTestCase.connections
import
registry
...
...
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