Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Z
ZEO
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
Kirill Smelkov
ZEO
Commits
f4439fbc
Commit
f4439fbc
authored
Nov 18, 2016
by
Jim Fulton
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
don't run the msgpack tests against the ZEO4 server
parent
5fe64971
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
28 additions
and
27 deletions
+28
-27
src/ZEO/tests/testZEO.py
src/ZEO/tests/testZEO.py
+28
-27
No files found.
src/ZEO/tests/testZEO.py
View file @
f4439fbc
...
@@ -1465,34 +1465,35 @@ def ClientDisconnected_errors_are_TransientErrors():
...
@@ -1465,34 +1465,35 @@ def ClientDisconnected_errors_are_TransientErrors():
True
True
"""
"""
if
os
.
environ
.
get
(
'ZEO_MSGPACK'
):
if
not
os
.
environ
.
get
(
'ZEO4_SERVER'
):
def
test_runzeo_msgpack_support
():
if
os
.
environ
.
get
(
'ZEO_MSGPACK'
):
"""
def
test_runzeo_msgpack_support
():
>>> import ZEO
"""
>>> import ZEO
>>> a, s = ZEO.server(threaded=False)
>>> a, s = ZEO.server(threaded=False)
>>> conn = ZEO.connection(a)
>>> conn = ZEO.connection(a)
>>> str(conn.db().storage.protocol_version.decode('ascii'))
>>> str(conn.db().storage.protocol_version.decode('ascii'))
'M5'
'M5'
>>> conn.close(); s()
>>> conn.close(); s()
"""
"""
else
:
else
:
def
test_runzeo_msgpack_support
():
def
test_runzeo_msgpack_support
():
"""
"""
>>> import ZEO
>>> import ZEO
>>> a, s = ZEO.server(threaded=False)
>>> a, s = ZEO.server(threaded=False)
>>> conn = ZEO.connection(a)
>>> conn = ZEO.connection(a)
>>> str(conn.db().storage.protocol_version.decode('ascii'))
>>> str(conn.db().storage.protocol_version.decode('ascii'))
'Z5'
'Z5'
>>> conn.close(); s()
>>> conn.close(); s()
>>> a, s = ZEO.server(zeo_conf=dict(msgpack=True), threaded=False)
>>> a, s = ZEO.server(zeo_conf=dict(msgpack=True), threaded=False)
>>> conn = ZEO.connection(a)
>>> conn = ZEO.connection(a)
>>> str(conn.db().storage.protocol_version.decode('ascii'))
>>> str(conn.db().storage.protocol_version.decode('ascii'))
'M5'
'M5'
>>> conn.close(); s()
>>> conn.close(); s()
"""
"""
if
sys
.
platform
.
startswith
(
'win'
):
if
sys
.
platform
.
startswith
(
'win'
):
del
runzeo_logrotate_on_sigusr2
del
runzeo_logrotate_on_sigusr2
...
...
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