U
    »mœd$  ã                   @   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.matÚ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   ú`/home/sam/Atlas/atlas_env/lib/python3.8/site-packages/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   
