Your IP : 216.73.216.213


Current Path : /opt/alt/python35/lib/python3.5/site-packages/joblib/test/__pycache__/
Upload File :
Current File : //opt/alt/python35/lib/python3.5/site-packages/joblib/test/__pycache__/test_logger.cpython-35.pyc



���W�@s�dZddlZddlZddlZddlZddlmZddlZddlm	Z	ye
d�Wnek
r�dd�Z
YnXe�Z
dd	�Zd
d�Zdd
�ZdS)z
Test the logger module.
�N)�mkdtemp)�	PrintTime�strcCs|S)N�)�srr�H/opt/alt/python35/lib/python3.5/site-packages/joblib/test/test_logger.py�<lambda>srcCs6t�}tjj|�r(tj|�|td<dS)z Test setup.
    �dirN)r�os�path�exists�shutil�rmtree�env)�cachedirrrr�setups	
rcCstjtd�dS)z Test teardown.
    r	N)r
rrrrrr�teardown&srcCsz�tj}tj�t_tdtjjtdd��}|t	d��tdtjjtdd��}|t	d��tdtjjtdd��}|t	d��tjj
�}dd}tj||�s�t
d||f��Wd|t_XdS)N�logfiler	ztest.logZFooz.Foo: 0\..s, 0\..min\nFoo: 0\..s, 0..min\nFoo: z.\..s, 0..min\nzExcepted %s, got %s)�sys�stderr�io�StringIOrr
r�joinr�unicode�getvalue�re�match�AssertionError)Zorig_stderrZ
print_timeZprinted_textrrrr�test_print_time/s 	"""r)�__doc__r
r
rr�tempfilerrZ
joblib.loggerrr�	NameError�dictrrrrrrrr�<module>s