minor test fixes

This commit is contained in:
Lex Berezhny 2019-01-07 14:27:21 -05:00
parent 26a3221bac
commit 3fdcb80960
6 changed files with 12 additions and 19 deletions
lbrynet/blob/client

View file

@ -168,16 +168,12 @@ class EncryptedFileSaver(EncryptedFileDownloader):
def _close_output(self):
self.file_handle, file_handle = None, self.file_handle
#def close_file():
if file_handle is not None:
name = file_handle.name
file_handle.close()
if self.completed is False:
os.remove(name)
#return threads.deferToThread(close_file)
def _get_write_func(self):
def write_func(data):
if self.stopped is False and self.file_handle is not None: