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
aa0032fb
Commit
aa0032fb
authored
Apr 26, 2007
by
Jim Fulton
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Removed unneeded loadEx and added missing close and cleanup methods.
parent
ed927c78
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
6 deletions
+8
-6
src/ZODB/tests/test_storage.py
src/ZODB/tests/test_storage.py
+8
-6
No files found.
src/ZODB/tests/test_storage.py
View file @
aa0032fb
...
...
@@ -74,19 +74,16 @@ class MinimalMemoryStorage(BaseStorage, object):
def
_clear_temp
(
self
):
pass
def
load
Ex
(
self
,
oid
,
version
):
def
load
(
self
,
oid
,
version
):
self
.
_lock_acquire
()
try
:
assert
not
version
tid
=
self
.
_cur
[
oid
]
self
.
hook
(
oid
,
tid
,
version
)
return
self
.
_index
[(
oid
,
tid
)],
tid
,
""
self
.
hook
(
oid
,
tid
,
''
)
return
self
.
_index
[(
oid
,
tid
)],
tid
finally
:
self
.
_lock_release
()
def
load
(
self
,
oid
,
version
):
return
self
.
loadEx
(
oid
,
version
)[:
2
]
def
_begin
(
self
,
tid
,
u
,
d
,
e
):
self
.
_txn
=
Transaction
(
tid
)
...
...
@@ -145,6 +142,11 @@ class MinimalMemoryStorage(BaseStorage, object):
finally
:
self
.
_lock_release
()
def
close
(
self
):
pass
cleanup
=
close
class
MinimalTestSuite
(
StorageTestBase
.
StorageTestBase
,
BasicStorage
.
BasicStorage
,
MTStorage
.
MTStorage
,
...
...
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