/usr/local/lib/python3.6/site-packages/joblib/test
NameSizeModeActions
data/-0755rm
__pycache__/-0755rm
common.py32830644editdlrm
testutils.py2510644editdlrm
test_backports.py11750644editdlrm
test_cloudpickle_wrapper.py7490644editdlrm
test_dask.py170530644editdlrm
test_deprecated_objects.py12490644editdlrm
test_disk.py22050644editdlrm
test_format_stack.py42500644editdlrm
test_func_inspect.py89350644editdlrm
test_func_inspect_special_encoding.py1460644editdlrm
test_hashing.py160780644editdlrm
test_init.py4220644editdlrm
test_logger.py9850644editdlrm
test_memmapping.py421540644editdlrm
test_memory.py448100644editdlrm
test_missing_multiprocessing.py11230644editdlrm
test_module.py18320644editdlrm
test_my_exceptions.py20660644editdlrm
test_numpy_pickle.py387000644editdlrm
test_numpy_pickle_compat.py6240644editdlrm
test_numpy_pickle_utils.py4210644editdlrm
test_parallel.py596530644editdlrm
test_store_backends.py19420644editdlrm
test_testing.py24670644editdlrm
test_utils.py5840644editdlrm
__init__.py730644editdlrm
Edit: /usr/local/lib/python3.6/site-packages/joblib/test/test_deprecated_objects.py (1249B)
""" Tests making sure that deprecated objects properly raise a deprecation warning when imported/created. """ import sys import pytest from joblib.my_exceptions import _deprecated_names as _deprecated_exceptions from joblib.format_stack import _deprecated_names as _deprecated_format_utils @pytest.mark.xfail(sys.version_info < (3, 7), reason="no module-level getattr") def test_deprecated_joblib_exceptions(): assert 'JoblibException' in _deprecated_exceptions for name in _deprecated_exceptions: msg = ('{} is deprecated and will be removed from joblib in ' '0.16'.format(name)) with pytest.warns(DeprecationWarning, match=msg): exec('from joblib.my_exceptions import {}'.format(name)) @pytest.mark.xfail(sys.version_info < (3, 7), reason="no module-level getattr") def test_deprecated_formatting_utilities(capsys): assert 'safe_repr' in _deprecated_format_utils assert 'eq_repr' in _deprecated_format_utils for name in _deprecated_format_utils: msg = ('{} is deprecated and will be removed from joblib in ' '0.16'.format(name)) with pytest.warns(DeprecationWarning, match=msg): exec('from joblib.format_stack import {}'.format(name))