
    Owg
              	          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                  j                  d      Zej                  j!                  d      Zej                  j!                  d      Zed	        Zd
 Zej                  j+                  ddd ej,                  dej                  j.                        g      d        Zej                  j.                  eej                  j+                  dddg      d                      Zy)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}|j                  t        |      d       }t        |j                  d      D cg c]  }t	        |       c}g      }t        j                  ||       y c c}w )Nz45e-1,4.5,45.,inf,-inf)header,)read_csvr   r   splitfloattmassert_frame_equal)all_parsersparserdataresultsexpecteds         _/var/www/horilla/myenv/lib/python3.12/site-packages/pandas/tests/io/parser/common/test_float.pytest_float_parserr      s]     F#D__Xd^D_9FTZZ_=58=>?H&(+ >s   A*c                     t        j                  dgdgdgdgd      }|j                  d      }| \  }}|j                  t	        |      |      }t        j                  ||       y )	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*   !   sc    			D6eWF8T	UB9959!D2FI??8D>9?ML,+    neg_expii`yl;)marksc                     | \  }}d| }|j                  t        |      |      }t        ddgi      }t        j                  ||       y )Ndata
10Er"   r           )r   r   r   r   r   )r&   r,   r   r(   r   r   r   s          r   test_very_negative_exponentr1   +   sP     3FIwi D__Xd^Y_GF&3%)H&(+r+   exp   NZolNZoc                 t   | \  }}d| }|j                  t        |      |      }|dk(  rf|dk(  r;t               r1t        j                  j                  d      }|j                  |       |dkD  rt        j                  nd}t        d	|gi      }	nt        d	d
| gi      }	t        j                  ||	       y )Nr/   r"   
round_tripr3   z%GH38794, on Linux gives object result)reasonr   r0   r   10E)r   r   r   pytestmarkxfailapplymarkernpinfr   r   r   )
r&   r2   requestr   r(   r   r   r9   valuer   s
             r   test_too_many_exponent_digitsr@   =   s    
 3FIseD__Xd^Y_GFL $$):)<;;$$,S$TD%'sfug./fSE{m45&(+r+   )__doc__ior   numpyr<   r8   pandas.compatr   pandasr   pandas._testing_testingr   r9   filterwarnings
pytestmarkusefixturesxfail_pyarrowskip_pyarrowr   r*   parametrizeparam
skip_ubsanr1   r@    r+   r   <module>rQ      s      +  [[''C
 ''8{{&&~6 , ,, 'v{{/E/EF,, !35H IJ, K  ,r+   