Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Z
ZODB
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
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
nexedi
ZODB
Commits
561a5c13
Commit
561a5c13
authored
Oct 29, 2008
by
Jim Fulton
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Added missing resource-release code.
parent
2c6e83c3
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 @
561a5c13
...
@@ -988,6 +988,7 @@ transaction, we'll get a result:
...
@@ -988,6 +988,7 @@ transaction, we'll get a result:
>>> sorted([int(u64(oid)) for (oid, _) in oids])
>>> sorted([int(u64(oid)) for (oid, _) in oids])
[0, 101, 102, 103, 104]
[0, 101, 102, 103, 104]
>>> fs.close()
"""
"""
def
tpc_finish_error
():
def
tpc_finish_error
():
...
...
src/ZODB/persistentclass.txt
View file @
561a5c13
...
@@ -273,6 +273,7 @@ share the same class:
...
@@ -273,6 +273,7 @@ share the same class:
>>> file = connection.exportFile(p._p_oid)
>>> file = connection.exportFile(p._p_oid)
>>> file.seek(0)
>>> file.seek(0)
>>> cp = connection.importFile(file)
>>> cp = connection.importFile(file)
>>> file.close()
>>> cp.color
>>> cp.color
'blue'
'blue'
...
@@ -282,6 +283,7 @@ share the same class:
...
@@ -282,6 +283,7 @@ share the same class:
>>> cp.__class__ is p.__class__
>>> cp.__class__ is p.__class__
True
True
>>> tm.abort()
XXX test abort of import
XXX test abort of import
src/ZODB/tests/blob_consume.txt
View file @
561a5c13
...
@@ -57,6 +57,7 @@ Now, after closing all readers and writers we can consume files again::
...
@@ -57,6 +57,7 @@ Now, after closing all readers and writers we can consume files again::
>>> blob_read.read()
>>> blob_read.read()
'I am another blob.'
'I am another blob.'
>>> blob_read.close()
Edge cases
Edge cases
==========
==========
...
...
src/ZODB/tests/blob_tempdir.txt
View file @
561a5c13
...
@@ -21,6 +21,8 @@ The created file is in the default temporary directory::
...
@@ -21,6 +21,8 @@ The created file is in the default temporary directory::
>>> w.name.startswith(tempfile.gettempdir())
>>> w.name.startswith(tempfile.gettempdir())
True
True
>>> w.close()
Case 2: Blobs that are in a database
Case 2: Blobs that are in a database
====================================
====================================
...
@@ -45,3 +47,5 @@ writing and expect the file to be in the blob temporary directory::
...
@@ -45,3 +47,5 @@ writing and expect the file to be in the blob temporary directory::
>>> w = blob.open('w')
>>> w = blob.open('w')
>>> w.name.startswith(os.path.join(blob_dir, 'tmp'))
>>> w.name.startswith(os.path.join(blob_dir, 'tmp'))
True
True
>>> w.close()
src/ZODB/tests/testFileStorage.py
View file @
561a5c13
...
@@ -485,11 +485,12 @@ there are:
...
@@ -485,11 +485,12 @@ there are:
Of course, calling lastInvalidations on an empty storage refturns no data:
Of course, calling lastInvalidations on an empty storage refturns no data:
>>>
fs
.close()
>>>
db
.close()
>>> fs = ZODB.FileStorage.FileStorage('t.fs', create=True)
>>> fs = ZODB.FileStorage.FileStorage('t.fs', create=True)
>>> list(fs.lastInvalidations(10))
>>> list(fs.lastInvalidations(10))
[]
[]
>>> fs.close()
"""
"""
def
deal_with_finish_failures
():
def
deal_with_finish_failures
():
...
...
src/ZODB/tests/testblob.py
View file @
561a5c13
...
@@ -527,6 +527,7 @@ def loadblob_tmpstore():
...
@@ -527,6 +527,7 @@ def loadblob_tmpstore():
Clean up:
Clean up:
>>> tmpstore.close()
>>> database.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