Commit 9e7a24a0 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 bd80869d
...@@ -547,7 +547,8 @@ class CommonBlobTests: ...@@ -547,7 +547,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