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
7bca363e
Commit
7bca363e
authored
Oct 29, 2008
by
Jim Fulton
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Added missing resource-release code.
parent
63c42bec
Changes
6
Show whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
12 additions
and
2 deletions
+12
-2
src/ZEO/tests/testZEO.py
src/ZEO/tests/testZEO.py
+1
-0
src/ZODB/persistentclass.txt
src/ZODB/persistentclass.txt
+3
-1
src/ZODB/tests/blob_consume.txt
src/ZODB/tests/blob_consume.txt
+1
-0
src/ZODB/tests/blob_tempdir.txt
src/ZODB/tests/blob_tempdir.txt
+4
-0
src/ZODB/tests/testFileStorage.py
src/ZODB/tests/testFileStorage.py
+2
-1
src/ZODB/tests/testblob.py
src/ZODB/tests/testblob.py
+1
-0
No files found.
src/ZEO/tests/testZEO.py
View file @
7bca363e
...
...
@@ -988,6 +988,7 @@ transaction, we'll get a result:
>>> sorted([int(u64(oid)) for (oid, _) in oids])
[0, 101, 102, 103, 104]
>>> fs.close()
"""
def
tpc_finish_error
():
...
...
src/ZODB/persistentclass.txt
View file @
7bca363e
...
...
@@ -273,6 +273,7 @@ share the same class:
>>> file = connection.exportFile(p._p_oid)
>>> file.seek(0)
>>> cp = connection.importFile(file)
>>> file.close()
>>> cp.color
'blue'
...
...
@@ -282,6 +283,7 @@ share the same class:
>>> cp.__class__ is p.__class__
True
>>> tm.abort()
XXX test abort of import
src/ZODB/tests/blob_consume.txt
View file @
7bca363e
...
...
@@ -57,6 +57,7 @@ Now, after closing all readers and writers we can consume files again::
>>> blob_read.read()
'I am another blob.'
>>> blob_read.close()
Edge cases
==========
...
...
src/ZODB/tests/blob_tempdir.txt
View file @
7bca363e
...
...
@@ -21,6 +21,8 @@ The created file is in the default temporary directory::
>>> w.name.startswith(tempfile.gettempdir())
True
>>> w.close()
Case 2: Blobs that are in a database
====================================
...
...
@@ -45,3 +47,5 @@ writing and expect the file to be in the blob temporary directory::
>>> w = blob.open('w')
>>> w.name.startswith(os.path.join(blob_dir, 'tmp'))
True
>>> w.close()
src/ZODB/tests/testFileStorage.py
View file @
7bca363e
...
...
@@ -485,11 +485,12 @@ there are:
Of course, calling lastInvalidations on an empty storage refturns no data:
>>>
fs
.close()
>>>
db
.close()
>>> fs = ZODB.FileStorage.FileStorage('t.fs', create=True)
>>> list(fs.lastInvalidations(10))
[]
>>> fs.close()
"""
def
deal_with_finish_failures
():
...
...
src/ZODB/tests/testblob.py
View file @
7bca363e
...
...
@@ -527,6 +527,7 @@ def loadblob_tmpstore():
Clean up:
>>> tmpstore.close()
>>> database.close()
"""
...
...
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