ai-content-maker/.venv/Lib/site-packages/joblib/test/test_numpy_pickle_utils.py

10 lines
383 B
Python
Raw Normal View History

2024-05-03 04:18:51 +03:00
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()