test_numpy_pickle_utils.py 421 B

12345678910
  1. from joblib import numpy_pickle_utils
  2. from joblib.compressor import BinaryZlibFile
  3. from joblib.testing import parametrize
  4. @parametrize('filename', ['test', u'test']) # testing str and unicode names
  5. def test_binary_zlib_file(tmpdir, filename):
  6. """Testing creation of files depending on the type of the filenames."""
  7. binary_file = BinaryZlibFile(tmpdir.join(filename).strpath, mode='wb')
  8. binary_file.close()