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
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Iliya Manolov
erp5
Commits
69e3f02f
Commit
69e3f02f
authored
Nov 16, 2016
by
Julien Muchembled
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
tests: compatibility with recent ZEO
parent
992c67b1
Changes
1
Show 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 @
69e3f02f
...
@@ -1300,11 +1300,7 @@ def dummy_tearDown(self):
...
@@ -1300,11 +1300,7 @@ def dummy_tearDown(self):
self
.
_clear
(
1
)
self
.
_clear
(
1
)
class
ZEOServerTestCase
(
ERP5TypeTestCase
):
class
ZEOServerTestCase
(
ERP5TypeTestCase
):
"""TestCase class to run a ZEO storage
"""TestCase class to run a ZEO storage"""
Main method is 'asyncore_loop' (inherited) since there is nothing to do
except processing I/O.
"""
def
setUp
(
self
):
def
setUp
(
self
):
# Start ZEO storage and send address to parent process if any.
# Start ZEO storage and send address to parent process if any.
...
@@ -1323,6 +1319,14 @@ class ZEOServerTestCase(ERP5TypeTestCase):
...
@@ -1323,6 +1319,14 @@ class ZEOServerTestCase(ERP5TypeTestCase):
os
.
close
(
zeo_client
)
os
.
close
(
zeo_client
)
ZopeTestCase
.
_print
(
"
\
n
ZEO Storage started at %s:%s ... "
%
host_port
)
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
):
def
tearDown
(
self
):
self
.
zeo_server
.
close_server
()
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