o
    Ö­j  ã                   @   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.matÚSummary>   Ú_1_Station_QÚ_2_Station_QÚ_3_Station_Q)ÚpjoinÚTEST_DATA_PATHr   ÚdtypeÚnamesr   Úissubset)Úmulti_fnameÚvarsÚfunny_names© r   úd/var/www/html/CropPilot/venv/lib/python3.10/site-packages/scipy/io/matlab/tests/test_pathological.pyÚtest_multiple_fieldnames   s   
ÿr   c                  C   sF   t tdƒ} t| dƒ�}ttt|ƒ W d   ƒ d S 1 sw   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   Únumpy.testingr   Úpytestr   r   Úscipy.io.matlab._mior   Ú__file__r   r   r   r   r   r   r   Ú<module>   s    
