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
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
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Léo-Paul Géneau
erp5
Commits
7b8d5045
Commit
7b8d5045
authored
Nov 16, 2016
by
Julien Muchembled
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
tests: compatibility with recent ZEO
parent
723fcb24
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
5 deletions
+9
-5
product/ERP5Type/tests/ERP5TypeTestCase.py
product/ERP5Type/tests/ERP5TypeTestCase.py
+9
-5
No files found.
product/ERP5Type/tests/ERP5TypeTestCase.py
View file @
7b8d5045
...
...
@@ -1300,11 +1300,7 @@ def dummy_tearDown(self):
self
.
_clear
(
1
)
class
ZEOServerTestCase
(
ERP5TypeTestCase
):
"""TestCase class to run a ZEO storage
Main method is 'asyncore_loop' (inherited) since there is nothing to do
except processing I/O.
"""
"""TestCase class to run a ZEO storage"""
def
setUp
(
self
):
# Start ZEO storage and send address to parent process if any.
...
...
@@ -1323,6 +1319,14 @@ class ZEOServerTestCase(ERP5TypeTestCase):
os
.
close
(
zeo_client
)
ZopeTestCase
.
_print
(
"
\
n
ZEO Storage started at %s:%s ... "
%
host_port
)
def
asyncore_loop
(
self
):
try
:
self
.
zeo_server
.
loop
()
except
AttributeError
:
# BBB
super
(
ZEOServerTestCase
,
self
).
asyncore_loop
()
except
KeyboardInterrupt
:
pass
def
tearDown
(
self
):
self
.
zeo_server
.
close_server
()
...
...
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