U
    ½mœd#  ã                   @   s4   d dl Z d dlZe ¡ dd„ ƒZdd„ Zdd„ ZdS )é    Nc              	   c   s&   t  | d d¡�}|V  W 5 Q R X d S )Nztest.h5Úw)Úh5pyÚFile)Ztmp_pathÚf© r   úL/home/sam/Atlas/atlas_env/lib/python3.8/site-packages/h5py/tests/conftest.pyÚwritable_file   s    r   c                 C   s   | j ddddd� d S )Nú--no-networkÚ
store_trueFzNo network access)ÚactionÚdefaultÚhelp)Z	addoption)Úparserr   r   r   Úpytest_addoption   s       ÿr   c                 C   s:   |   d¡r6tjjdd�}|D ]}d|jkr| |¡ qd S )Nr	   zNo Internet)ÚreasonZ	nonetwork)Z	getoptionÚpytestÚmarkÚskipÚkeywordsZ
add_marker)ÚconfigÚitemsZnonetÚitemr   r   r   Úpytest_collection_modifyitems   s
    

r   )r   r   Zfixturer   r   r   r   r   r   r   Ú<module>   s
   
