/usr/local/lib/python3.6/site-packages/joblib/test/__pycache__
NameSizeModeActions
common.cpython-36.pyc31990644editdlrm
testutils.cpython-36.pyc5250644editdlrm
test_backports.cpython-36.pyc15860644editdlrm
test_cloudpickle_wrapper.cpython-36.pyc10320644editdlrm
test_dask.cpython-36.pyc188740644editdlrm
test_deprecated_objects.cpython-36.pyc13980644editdlrm
test_disk.cpython-36.pyc21120644editdlrm
test_format_stack.cpython-36.pyc37820644editdlrm
test_func_inspect.cpython-36.pyc94350644editdlrm
test_func_inspect_special_encoding.cpython-36.pyc2980644editdlrm
test_hashing.cpython-36.pyc135890644editdlrm
test_init.cpython-36.pyc3980644editdlrm
test_logger.cpython-36.pyc7940644editdlrm
test_memmapping.cpython-36.pyc313890644editdlrm
test_memory.cpython-36.pyc358570644editdlrm
test_missing_multiprocessing.cpython-36.pyc12320644editdlrm
test_module.cpython-36.pyc19820644editdlrm
test_my_exceptions.cpython-36.pyc22190644editdlrm
test_numpy_pickle.cpython-36.pyc286520644editdlrm
test_numpy_pickle_compat.cpython-36.pyc6630644editdlrm
test_numpy_pickle_utils.cpython-36.pyc6130644editdlrm
test_parallel.cpython-36.pyc576220644editdlrm
test_store_backends.cpython-36.pyc22280644editdlrm
test_testing.cpython-36.pyc23140644editdlrm
test_utils.cpython-36.pyc8880644editdlrm
__init__.cpython-36.pyc2270644editdlrm
Edit: /usr/local/lib/python3.6/site-packages/joblib/test/__pycache__/common.cpython-36.pyc (3199B)
3 Eg @sTdZddlZddlZddlZddlZddlZddlZddlmZddl m Z m Z y ddl Z Wne k rtdZ YnXyddlZddZWn e k rddZdZYnXy ddlmZd d Zd d ZWn$e k rd d ZdZZYnXeZdddZddZe edkddZe ejjd ddZe e dkddZe e dk ddZdS)z Small utilities for testing. N)mp)SkipTestskipifcCs|S)z*A decorator to skip tests requiring numpy.)funcrr.my_funcr)rr rrrrs) memory_usagecCs|S)z4A decorator to skip tests requiring memory_profiler.r)rrrrwith_memory_profiler*sr cOs*tjt|||fdd}t|t|S)z)Compute memory usage when executing func.gMbP?)interval)gcZcollectr maxmin)rargskwargsZmem_userrr memory_used.srcCs dd}|S)z4A decorator to skip tests requiring memory_profiler.cSs tddS)NzTest requires memory_profiler.)rrrrr dummy_func7sz(with_memory_profiler..dummy_funcr)rrrrrr 5scCsHdtjksdtjkrdSt|dd}tj||t|<}|jdS)zTimeout based suiciding thread to kill the test runner process If some subprocess dies in an unexpected way we don't want the parent process to block indefinitely. Z NO_AUTOKILLz--pdbNcSsJtj}td|tj|tjtjdtd|tj|tjdS)Nz1Timeout exceeded: terminating stalled process: %dg?z-Timeout exceeded: killing stalled process: %d) osgetpidprintkillsignalSIGTERMtimesleepSIGKILL)pidrrrautokillRs    z setup_autokill..autokill) renvironsysargvteardown_autokill threadingTimer_KILLER_THREADSstart) module_nametimeoutrtrrrsetup_autokillDs  r+cCstj|}|dk r|jdS)z)Cancel a previously started killer threadN)r&getcancel)r(Zkillerrrrr#`s r#zNeeds multiprocessing to run.)reasonz/dev/shmz5This test requires a large /dev/shm shared memory fs.zNeeds lz4 compression to runz$Needs lz4 not being installed to run)r)__doc__r$rrrr!r Zjoblib._multiprocessing_helpersrZjoblib.testingrrZlz4 ImportErrorZnumpynprZmemory_profilerr r rdictr&r+r#Zwith_multiprocessingpathexistsZ with_dev_shmZwith_lz4Z without_lz4rrrrsH