o
    l¨ÊhX  ã                   @   sL   d Z ddlZddlmZ zedƒ W n ey   dd„ ZY nw dd„ ZdS )	z
Test the logger module.
é    N)Ú	PrintTimeÚstrc                 C   s   | S )N© )Úsr   r   úI/var/www/html/env/lib/python3.10/site-packages/joblib/test/test_logger.pyÚ<lambda>   s    r   c                 C   s~   |   d¡j}t|d�}|tdƒƒ t|d�}|tdƒƒ t|d�}|tdƒƒ | ¡ \}}d}t ||¡s=td||f ƒ‚d S )Nztest.log)ÚlogfileÚFooz=Foo: 0\..s, 0\..min\nFoo: 0\..s, 0..min\nFoo: .\..s, 0..min\nzExcepted %s, got %s)ÚjoinÚstrpathr   ÚunicodeÚ
readouterrÚreÚmatchÚAssertionError)ÚtmpdirÚcapsysr   Ú
print_timeÚout_printed_textÚerr_printed_textr   r   r   r   Útest_print_time   s   


ÿÿr   )Ú__doc__r   Újoblib.loggerr   r   Ú	NameErrorr   r   r   r   r   Ú<module>   s    ÿ