B
    d                 @   s   d dl Z d dlZd dlmZ d dlmZmZ e jjejj	dk ddZ
e jjeeddid	d
 Ze jjeeddidd Ze jjeeddidd Ze jjeeddidd Ze jjeeddidd Ze jjedd ZdS )    N)h5pl)insubprocesssubproc_env)   
   r   zHDF5 1.10.1+ required)reasonZHDF5_PLUGIN_PATHZh5py_plugin_testc             C   s&   t  dkstt ddks"td S )Nr   r   s   h5py_plugin_test)r   sizeAssertionErrorget)request r   F/var/www/html/venv/lib/python3.7/site-packages/h5py/tests/test_h5pl.pytest_default   s    r   c             C   sB   t d t  dkstt ddks,tt ddks>td S )Ns   /opt/hdf5/vendor-plugin   r   s   h5py_plugin_testr   )r   appendr   r	   r
   )r   r   r   r   test_append   s    
r   c             C   sB   t d t  dkstt ddks,tt ddks>td S )Ns   /opt/hdf5/vendor-pluginr   r   r   s   h5py_plugin_test)r   prependr   r	   r
   )r   r   r   r   test_prepend)   s    
r   c             C   sD   t dd t  dkstt ddks.tt ddks@td S )Ns   /opt/hdf5/vendor-pluginr   r   r   s   h5py_plugin_test)r   insertr   r	   r
   )r   r   r   r   test_insert3   s    r   c             C   s2   t dd t  dkstt ddks.td S )Ns   /opt/hdf5/vendor-pluginr   r   )r   replacer   r	   r
   )r   r   r   r   test_replace=   s    r   c             C   s   t d t  dkstd S )Nr   )r   remover   r	   )r   r   r   r   test_removeF   s    
r   )ZpytestZh5pyr   Zh5py.tests.commonr   r   markZskipifversionZhdf5_version_tupleZ
pytestmarkZmpi_skipr   r   r   r   r   r   r   r   r   r   <module>
   s,   