Files

11 lines
397 B
Python

"""What the suites that compress a file share: compress with gzip.compress, replace_file and os.fsync bound."""
import functools
import gzip
import os
from text_files import compressed
from text_files.file_writes import replace_file
# A test names pack, replace or sync to swap that one.
compress = functools.partial(compressed.compress, pack=gzip.compress, replace=replace_file, sync=os.fsync)