test_numpy_pickle_utils.py 382 B

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