[Zodb-checkins] SVN: ZODB/trunk/src/Z Added missing resource-release code.
Jim Fulton
jim at zope.com
Wed Oct 29 15:43:19 EDT 2008
Log message for revision 92682:
Added missing resource-release code.
Changed:
U ZODB/trunk/src/ZEO/tests/testZEO.py
U ZODB/trunk/src/ZODB/persistentclass.txt
U ZODB/trunk/src/ZODB/tests/blob_consume.txt
U ZODB/trunk/src/ZODB/tests/blob_tempdir.txt
U ZODB/trunk/src/ZODB/tests/testFileStorage.py
U ZODB/trunk/src/ZODB/tests/testblob.py
-=-
Modified: ZODB/trunk/src/ZEO/tests/testZEO.py
===================================================================
--- ZODB/trunk/src/ZEO/tests/testZEO.py 2008-10-29 19:42:45 UTC (rev 92681)
+++ ZODB/trunk/src/ZEO/tests/testZEO.py 2008-10-29 19:43:19 UTC (rev 92682)
@@ -988,6 +988,7 @@
>>> sorted([int(u64(oid)) for (oid, _) in oids])
[0, 101, 102, 103, 104]
+ >>> fs.close()
"""
def tpc_finish_error():
Modified: ZODB/trunk/src/ZODB/persistentclass.txt
===================================================================
--- ZODB/trunk/src/ZODB/persistentclass.txt 2008-10-29 19:42:45 UTC (rev 92681)
+++ ZODB/trunk/src/ZODB/persistentclass.txt 2008-10-29 19:43:19 UTC (rev 92682)
@@ -273,6 +273,7 @@
>>> file = connection.exportFile(p._p_oid)
>>> file.seek(0)
>>> cp = connection.importFile(file)
+ >>> file.close()
>>> cp.color
'blue'
@@ -282,6 +283,7 @@
>>> cp.__class__ is p.__class__
True
+ >>> tm.abort()
+
-
XXX test abort of import
Modified: ZODB/trunk/src/ZODB/tests/blob_consume.txt
===================================================================
--- ZODB/trunk/src/ZODB/tests/blob_consume.txt 2008-10-29 19:42:45 UTC (rev 92681)
+++ ZODB/trunk/src/ZODB/tests/blob_consume.txt 2008-10-29 19:43:19 UTC (rev 92682)
@@ -57,6 +57,7 @@
>>> blob_read.read()
'I am another blob.'
+ >>> blob_read.close()
Edge cases
==========
Modified: ZODB/trunk/src/ZODB/tests/blob_tempdir.txt
===================================================================
--- ZODB/trunk/src/ZODB/tests/blob_tempdir.txt 2008-10-29 19:42:45 UTC (rev 92681)
+++ ZODB/trunk/src/ZODB/tests/blob_tempdir.txt 2008-10-29 19:43:19 UTC (rev 92682)
@@ -21,6 +21,8 @@
>>> w.name.startswith(tempfile.gettempdir())
True
+ >>> w.close()
+
Case 2: Blobs that are in a database
====================================
@@ -45,3 +47,5 @@
>>> w = blob.open('w')
>>> w.name.startswith(os.path.join(blob_dir, 'tmp'))
True
+
+ >>> w.close()
Modified: ZODB/trunk/src/ZODB/tests/testFileStorage.py
===================================================================
--- ZODB/trunk/src/ZODB/tests/testFileStorage.py 2008-10-29 19:42:45 UTC (rev 92681)
+++ ZODB/trunk/src/ZODB/tests/testFileStorage.py 2008-10-29 19:43:19 UTC (rev 92682)
@@ -485,11 +485,12 @@
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():
Modified: ZODB/trunk/src/ZODB/tests/testblob.py
===================================================================
--- ZODB/trunk/src/ZODB/tests/testblob.py 2008-10-29 19:42:45 UTC (rev 92681)
+++ ZODB/trunk/src/ZODB/tests/testblob.py 2008-10-29 19:43:19 UTC (rev 92682)
@@ -527,6 +527,7 @@
Clean up:
+ >>> tmpstore.close()
>>> database.close()
"""
More information about the Zodb-checkins
mailing list