FEA-Bench / testbed /joblib__joblib /joblib /test /test_numpy_pickle_utils.py
hc99's picture
Add files using upload-large-folder tool
dee9fba verified
raw
history blame
383 Bytes
from joblib.compressor import BinaryZlibFile
from joblib.testing import parametrize
@parametrize('filename', ['test', u'test']) # testing str and unicode names
def test_binary_zlib_file(tmpdir, filename):
"""Testing creation of files depending on the type of the filenames."""
binary_file = BinaryZlibFile(tmpdir.join(filename).strpath, mode='wb')
binary_file.close()