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
Labels
Merge Requests
140
Merge Requests
140
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Jobs
Commits
Open sidebar
nexedi
erp5
Commits
c3e118dd
Commit
c3e118dd
authored
Mar 24, 2021
by
Aurel
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
make it zope2.12 BBB
parent
4f15a1eb
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
2 deletions
+4
-2
product/ERP5Type/tests/ProcessingNodeTestCase.py
product/ERP5Type/tests/ProcessingNodeTestCase.py
+4
-2
No files found.
product/ERP5Type/tests/ProcessingNodeTestCase.py
View file @
c3e118dd
...
@@ -5,7 +5,10 @@ from UserDict import IterableUserDict
...
@@ -5,7 +5,10 @@ from UserDict import IterableUserDict
import
Lifetime
import
Lifetime
import
transaction
import
transaction
from
Testing
import
ZopeTestCase
from
Testing
import
ZopeTestCase
from
ZServer.Testing
import
utils
try
:
from
ZServer.Testing
import
utils
except
:
# BBB Zope 2.12
from
Testing.ZopeTestCase
import
utils
from
ZODB.POSException
import
ConflictError
from
ZODB.POSException
import
ConflictError
from
zLOG
import
LOG
,
ERROR
from
zLOG
import
LOG
,
ERROR
from
Products.CMFActivity.Activity.Queue
import
VALIDATION_ERROR_DELAY
from
Products.CMFActivity.Activity.Queue
import
VALIDATION_ERROR_DELAY
...
@@ -148,7 +151,6 @@ class ProcessingNodeTestCase(ZopeTestCase.TestCase):
...
@@ -148,7 +151,6 @@ class ProcessingNodeTestCase(ZopeTestCase.TestCase):
def
startZServer
(
self
,
verbose
=
False
):
def
startZServer
(
self
,
verbose
=
False
):
"""Start HTTP ZServer in background"""
"""Start HTTP ZServer in background"""
#utils = ZopeTestCase.utils
if
utils
.
_Z2HOST
is
None
:
if
utils
.
_Z2HOST
is
None
:
from
Products.ERP5Type.tests.runUnitTest
import
log_directory
from
Products.ERP5Type.tests.runUnitTest
import
log_directory
log
=
os
.
path
.
join
(
log_directory
,
"Z2.log"
)
log
=
os
.
path
.
join
(
log_directory
,
"Z2.log"
)
...
...
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