
    5[g                     f    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 Zd Zy	)
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                      t        t        d      } t        |       }|d   j                  j                  }t        h dj                  |             y )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_namess      b/var/www/html/bid-api/venv/lib/python3.12/site-packages/scipy/io/matlab/tests/test_pathological.pytest_multiple_fieldnamesr      sG     (HIK;Dy/''--K %%-Xk%:<    c                      t        t        d      } t        | d      5 }t        t        t
        |       d d d        y # 1 sw Y   y xY w)Nzmalformed1.matrb)r   r   openassert_raises
ValueErrorr   )fnamefs     r   test_malformed1r       s5     ."23E	eT	aj'1- 
		s	   <AN)__doc__os.pathr   r   r   numpy.testingr   pytestr   r   scipy.io.matlab._mior   __file__r   r   r     r   r   <module>r(      s3    + ! * (wx(&1<.r   