
    Eg
              	          d Z ddlmZ ddlZddlZddlmZ ddlm	Z	 ddl
mZ ej                            d          Zej                            d          Zej                            d          Zed	             Zd
 Zej                            ddd ej        dej        j                  g          d             Zej        j        eej                            dddg          d                                     ZdS )zy
Tests that work on both the Python and C engines but do not have a
specific classification into the other test modules.
    )StringION)is_platform_linux)	DataFramez=ignore:Passing a BlockManager to DataFrame:DeprecationWarningpyarrow_xfailpyarrow_skipc                     | }d}|                     t          |          d           }t          d |                    d          D             g          }t	          j        ||           d S )Nz45e-1,4.5,45.,inf,-inf)headerc                 ,    g | ]}t          |          S  )float).0ss     ]/var/www/sysmax/venv/lib/python3.11/site-packages/pandas/tests/io/parser/common/test_float.py
<listcomp>z%test_float_parser.<locals>.<listcomp>   s    ===588===    ,)read_csvr   r   splittmassert_frame_equal)all_parsersparserdataresultexpecteds        r   test_float_parserr      sk     F#D__Xd^^D_99F==TZZ__===>??H&(+++++r   c                     t          j        dgdgdgdgd          }|                    d          }| \  }}|                    t	          |          |          }t          j        ||           d S )	N2e3E42e632E)wxyzF)indexfloat_precision)r   	from_dictto_csvr   r   r   r   )all_parsers_all_precisionsdfr   r   	precisiondf_roundtrips         r   test_scientific_no_exponentr/   !   sw    		D6eWF8TT	U	UB9959!!D2FI??8D>>9?MML,+++++r   neg_expii`yl;)marksc                     | \  }}d| }|                     t          |          |          }t          ddgi          }t          j        ||           d S )Ndata
10Er'   r           )r   r   r   r   r   )r+   r0   r   r-   r   r   r   s          r   test_very_negative_exponentr5   +   sb     3FI w  D__Xd^^Y_GGF&3%))H&(+++++r   exp   NZolNZoc                    | \  }}d| }|                     t          |          |          }|dk    rp|dk    rCt                      r5t          j                            d          }|                    |           |dk    rt          j        nd}t          d	|gi          }	nt          d	d
| gi          }	t          j        ||	           d S )Nr3   r'   
round_tripr7   z%GH38794, on Linux gives object result)reasonr   r4   r   10E)r   r   r   pytestmarkxfailapplymarkernpinfr   r   r   )
r+   r6   requestr   r-   r   r   r=   valuer   s
             r   test_too_many_exponent_digitsrD   =   s    
 3FIsD__Xd^^Y_GGFL  $$$):)<)<$;$$,S$TTD%%%''sfug.//f{S{{m455&(+++++r   )__doc__ior   numpyr@   r<   pandas.compatr   pandasr   pandas._testing_testingr   r=   filterwarnings
pytestmarkusefixturesxfail_pyarrowskip_pyarrowr   r/   parametrizeparam
skip_ubsanr5   rD   r   r   r   <module>rT      s               + + + + + +            [''C 
 ''88{&&~66 , , ,, , , 'v{/EFFF , , , !35H IJJ, , KJ  , , ,r   