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
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
nexedi
ZEO
Commits
6115871c
Commit
6115871c
authored
Nov 25, 2018
by
Jim Fulton
Committed by
GitHub
Nov 25, 2018
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #120 from zopefoundation/fix-zodb-55-tests
Fix tests under ZODB 5.5
parents
7276ed47
082ff317
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
27 additions
and
0 deletions
+27
-0
setup.py
setup.py
+3
-0
src/ZEO/tests/testZEO.py
src/ZEO/tests/testZEO.py
+24
-0
No files found.
setup.py
View file @
6115871c
...
...
@@ -28,6 +28,9 @@ install_requires = [
]
tests_require
=
[
# We rely on implementation details of
# test mocks. See https://github.com/zopefoundation/ZODB/pull/222
'ZODB >= 5.5.1'
,
'zope.testing'
,
'manuel'
,
'random2'
,
...
...
src/ZEO/tests/testZEO.py
View file @
6115871c
...
...
@@ -355,6 +355,29 @@ class FullGenericTests(
):
"""Extend GenericTests with tests that MappingStorage can't pass."""
def
checkPackUndoLog
(
self
):
# PackableStorage.PackableUndoStorage wants to adjust
# time.sleep and time.time to cooperate and pretend for time
# to pass. That doesn't work for the spawned server, and this
# test case is very sensitive to times matching.
super_meth
=
super
(
FullGenericTests
,
self
).
checkPackUndoLog
# Find the underlying function, not the decorated method.
# If it doesn't exist, the implementation has changed and we
# need to revisit this...
try
:
underlying_func
=
super_meth
.
__wrapped__
except
AttributeError
:
# ...unless we're on Python 2, which doesn't have the __wrapped__
# attribute.
if
bytes
is
not
str
:
# pragma: no cover Python 3
raise
unbound_func
=
PackableStorage
.
PackableUndoStorage
.
checkPackUndoLog
wrapper_func
=
unbound_func
.
__func__
underlying_func
=
wrapper_func
.
func_closure
[
0
].
cell_contents
underlying_func
(
self
)
class
FileStorageRecoveryTests
(
StorageTestBase
.
StorageTestBase
,
RecoveryStorage
.
RecoveryStorage
):
...
...
@@ -432,6 +455,7 @@ class FileStorageTests(FullGenericTests):
self
.
_storage
.
_info
[
'interfaces'
]
)
class
FileStorageSSLTests
(
FileStorageTests
):
def
getZEOConfig
(
self
):
...
...
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