a
    Pf                     @   sb   d Z ddlmZ ddlZddlmZ ddlmZ ej	
dZej	dddgd	d
 Zd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)	DataFramez=ignore:Passing a BlockManager to DataFrame:DeprecationWarningzdata,thousands,decimal)zA|B|C
1|2,334.01|5
10|13|10.
,.)zA|B|C
1|2.334,01|5
10|13|10,
r   r   c                 C   s   | }t ddgddgddgd}|jdkrvd	}tjt|d
& |jt|d||d W d    n1 sh0    Y  d S |jt|d||d}t|| d S )N   
   gQ<@      g      $@)ABCZpyarrowzAThe 'thousands' option is not supported with the 'pyarrow' engine)match|)sep	thousandsdecimal)	r   ZenginepytestZraises
ValueErrorread_csvr   tmassert_frame_equal)all_parsersdatar   r   parserexpectedmsgresult r   c/var/www/ai-form-bot/venv/lib/python3.9/site-packages/pandas/tests/io/parser/common/test_decimal.pytest_1000_sep_with_decimal   s    
$r   c                 C   sN   | }d}|j t|ddd}tg dg dg dgg dd	}t|| d S )
NzId;Number1;Number2;Text1;Text2;Number3
1;1521,1541;187101,9543;ABC;poi;4,738797819
2;121,12;14897,76;DEF;uyt;0,377320872
3;878,158;108013,434;GHI;rez;2,735694704;r   )r   r   )r   gAc̝ė@g	hAABCZpoig2[j@)   gHzG^@g{G@ZDEFZuytgUq&?)   g%Cq@g^@ZGHIZrezg)@)ZIdZNumber1ZNumber2ZText1ZText2ZNumber3)columns)r   r   r   r   r   )r   r   r   r   r   r   r   r   test_euro_decimal_format8   s    r%   )__doc__ior   r   Zpandasr   Zpandas._testingZ_testingr   markfilterwarningsZ
pytestmarkZparametrizer   r%   r   r   r   r   <module>   s   
