| Server IP : 162.253.224.18 / Your IP : 216.73.217.120 Web Server : Apache System : Linux s18.infinitysrv.com 3.10.0-962.3.2.lve1.5.89.el7.x86_64 #1 SMP Thu Jul 9 15:55:31 UTC 2026 x86_64 User : dejavumk ( 1184) PHP Version : 7.4.33 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : ON | Sudo : OFF | Pkexec : OFF Directory : /opt/alt/python35/lib/python3.5/site-packages/joblib/test/ |
Upload File : |
import shutil
import os
from tempfile import mkdtemp
from joblib import numpy_pickle_utils
###############################################################################
# Test fixtures
env = dict()
def setup_module():
"""Test setup."""
env['dir'] = mkdtemp()
def teardown_module():
"""Test teardown."""
shutil.rmtree(env['dir'])
def test_binary_zlib_file():
"""Testing creation of files depending on the type of the filenames."""
# Testing str filename.
binary_file = numpy_pickle_utils.BinaryZlibFile(
os.path.join(env['dir'], 'test'),
mode='wb')
binary_file.close()
# Testing unicode filename.
binary_file = numpy_pickle_utils.BinaryZlibFile(
os.path.join(env['dir'], u'test'),
mode='wb')
binary_file.close()