a
    Re                     @   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   s4   t td} t| }|d jj}th d| d S )Nznasty_duplicate_fieldnames.matZSummary>   Z_3_Station_QZ_2_Station_QZ_1_Station_Q)pjoinTEST_DATA_PATHr   Zdtypenamesr   issubset)Zmulti_fnamevarsZfunny_names r   [/var/www/sunrise/env/lib/python3.9/site-packages/scipy/io/matlab/tests/test_pathological.pytest_multiple_fieldnames   s    

r   c                  C   sD   t td} t| d}ttt| W d    n1 s60    Y  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   
