U
    md#                     @   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
   
