[Zodb-checkins] SVN: ZODB/trunk/src/ZEO/tests/testZEO.py Closed handle associated with a temporary file to prevent errors on
Jim Fulton
jim at zope.com
Fri Oct 17 10:02:46 EDT 2008
Log message for revision 92295:
Closed handle associated with a temporary file to prevent errors on
windows. The test author asures me that leaving the handle open wasn't
intentional.
Changed:
U ZODB/trunk/src/ZEO/tests/testZEO.py
-=-
Modified: ZODB/trunk/src/ZEO/tests/testZEO.py
===================================================================
--- ZODB/trunk/src/ZEO/tests/testZEO.py 2008-10-17 14:02:43 UTC (rev 92294)
+++ ZODB/trunk/src/ZEO/tests/testZEO.py 2008-10-17 14:02:46 UTC (rev 92295)
@@ -703,7 +703,8 @@
def checkTransactionBufferCleanup(self):
oid = self._storage.new_oid()
- handle, blob_file_name = tempfile.mkstemp() #XXX cleanup temp file
+ handle, blob_file_name = tempfile.mkstemp()
+ os.close(handle)
open(blob_file_name, 'w').write('I am a happy blob.')
t = transaction.Transaction()
self._storage.tpc_begin(t)
More information about the Zodb-checkins
mailing list