/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_logger.py (985B)
""" Test the logger module. """ # Author: Gael Varoquaux # Copyright (c) 2009 Gael Varoquaux # License: BSD Style, 3 clauses. import re from joblib.logger import PrintTime def test_print_time(tmpdir, capsys): # A simple smoke test for PrintTime. logfile = tmpdir.join('test.log').strpath print_time = PrintTime(logfile=logfile) print_time('Foo') # Create a second time, to smoke test log rotation. print_time = PrintTime(logfile=logfile) print_time('Foo') # And a third time print_time = PrintTime(logfile=logfile) print_time('Foo') out_printed_text, err_printed_text = capsys.readouterr() # Use regexps to be robust to time variations match = r"Foo: 0\..s, 0\..min\nFoo: 0\..s, 0..min\nFoo: " + \ r".\..s, 0..min\n" if not re.match(match, err_printed_text): raise AssertionError('Excepted %s, got %s' % (match, err_printed_text))