Commit 45aafcd4 authored by Jim Fulton's avatar Jim Fulton

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.
parent b770e326
...@@ -703,7 +703,8 @@ class CommonBlobTests: ...@@ -703,7 +703,8 @@ class CommonBlobTests:
def checkTransactionBufferCleanup(self): def checkTransactionBufferCleanup(self):
oid = self._storage.new_oid() 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.') open(blob_file_name, 'w').write('I am a happy blob.')
t = transaction.Transaction() t = transaction.Transaction()
self._storage.tpc_begin(t) self._storage.tpc_begin(t)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment