a
    DBìjŒ  ã                   @   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é   é
   gìQ¸<¢@é   é   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   úi/mnt/bigstor/www/usecases/.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 )
Nz¡Id;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   gAñcÌ�Ä—@gÕ	h¢ïÖAÚABCZpoig2Ø[j‡ô@)é   gHáz®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   ÿ÷þ
