U
    Hvf$                     @   sZ   d Z ddlmZmZ ddlmZ ddlmZ	 ddl
mZ eeedZdd Zd	d
 ZdS )z Test reading of files not conforming to matlab specification

We try and read any file that matlab reads, these files included
    )dirnamejoin)assert_)raises)loadmatdatac                  C   s:   t td} t| }|d jj}ttdddg| d S )Nznasty_duplicate_fieldnames.matZSummaryZ_1_Station_QZ_2_Station_QZ_3_Station_Q)pjoinTEST_DATA_PATHr   Zdtypenamesr   setissubset)Zmulti_fnamevarsZfunny_names r   K/tmp/pip-unpacked-wheel-96ln3f52/scipy/io/matlab/tests/test_pathological.pytest_multiple_fieldnames   s    
r   c               	   C   s0   t td} t| d}ttt| W 5 Q R X d S )Nzmalformed1.matrb)r   r	   openassert_raises
ValueErrorr   )fnamefr   r   r   test_malformed1   s    
r   N)__doc__os.pathr   r   r   Znumpy.testingr   Zpytestr   r   Zscipy.io.matlab._mior   __file__r	   r   r   r   r   r   r   <module>   s   
