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
2f2192b7
Commit
2f2192b7
authored
Apr 26, 2007
by
Jim Fulton
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Changed to work with storages that don't support either versions or undo.
parent
faa195cd
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
19 additions
and
3 deletions
+19
-3
src/ZODB/tests/MTStorage.py
src/ZODB/tests/MTStorage.py
+19
-3
No files found.
src/ZODB/tests/MTStorage.py
View file @
2f2192b7
...
@@ -162,9 +162,25 @@ class ExtStorageClientThread(StorageClientThread):
...
@@ -162,9 +162,25 @@ class ExtStorageClientThread(StorageClientThread):
def
runtest
(
self
):
def
runtest
(
self
):
# pick some other storage ops to execute, depending in part
# pick some other storage ops to execute, depending in part
# on the features provided by the storage.
# on the features provided by the storage.
names
=
[
"do_load"
,
"do_modifiedInVersion"
]
names
=
[
"do_load"
]
if
self
.
storage
.
supportsUndo
():
storage
=
self
.
storage
try
:
supportsVersions
=
storage
.
supportsVersions
except
AttributeError
:
pass
else
:
if
supportsVersions
():
names
.
append
(
"do_modifiedInVersion"
)
try
:
supportsUndo
=
storage
.
supportsUndo
except
AttributeError
:
pass
else
:
if
supportsUndo
():
names
+=
[
"do_loadSerial"
,
"do_undoLog"
,
"do_iterator"
]
names
+=
[
"do_loadSerial"
,
"do_undoLog"
,
"do_iterator"
]
ops
=
[
getattr
(
self
,
meth
)
for
meth
in
names
]
ops
=
[
getattr
(
self
,
meth
)
for
meth
in
names
]
assert
ops
,
"Didn't find an storage ops in %s"
%
self
.
storage
assert
ops
,
"Didn't find an storage ops in %s"
%
self
.
storage
# do a store to guarantee there's at least one oid in self.oids
# do a store to guarantee there's at least one oid in self.oids
...
...
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