U
    /e<                     @  s^   d Z ddlmZ ddlZeeZddlmZm	Z	 ddl
Z
dZe
jdddd	d
ddZdS )z0 Define a Pytest plugin for a log file fixture

    )annotationsN)IOIterator)log_filesession)Zscopezpytest.FixtureRequestzIterator[IO[str]])requestreturnc              	   c  sL   t | jjjd}|d W 5 Q R X t | jjjd}|V  W 5 Q R X d S )Nw a)openconfigoptionr   write)r   f r   C/tmp/pip-unpacked-wheel-f5fndrjf/bokeh/_testing/plugins/log_file.pyr   )   s    r   )__doc__
__future__r   logging	getLogger__name__logtypingr   r   Zpytest__all__Zfixturer   r   r   r   r   <module>   s   

