def create_store(self): with create_tmp_file() as tmp_file: with backends.ScipyDataStore(tmp_file, mode='w') as store: yield store
def create_store(self): fobj = BytesIO() yield backends.ScipyDataStore(fobj, 'w')