o
    ‡Å€gŒ  ã                   @   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r<d	}tjt|d
 |jt|ƒd||d W d   ƒ d S 1 s5w   Y  d S |jt|ƒd||d}t ||¡ d S )Né   é
   gìQ¸<¢@é   é   g      $@)ÚAÚBÚCÚpyarrowzAThe 'thousands' option is not supported with the 'pyarrow' engine)Úmatchú|)ÚsepÚ	thousandsÚdecimal)	r   ÚengineÚpytestÚraisesÚ
ValueErrorÚread_csvr   ÚtmÚassert_frame_equal)Úall_parsersÚdatar   r   ÚparserÚexpectedÚmsgÚresult© r    ú^/var/www/html/myenv/lib/python3.10/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ÚABCÚpoig2Ø[j‡ô@)é   gHáz®G^@g{®GáÍ@ÚDEFÚuytg¥Uq&Ø?)é   g%•Cq‹@gçû©ñÖ^ú@ÚGHIÚrezgÈ)¬ç³â@)ÚIdÚNumber1ÚNumber2ÚText1ÚText2ÚNumber3)Úcolumns)r   r   r   r   r   )r   r   r   r   r   r    r    r!   Útest_euro_decimal_format8   s   ýúr3   )Ú__doc__Úior   r   Úpandasr   Úpandas._testingÚ_testingr   ÚmarkÚfilterwarningsÚ
pytestmarkÚparametrizer"   r3   r    r    r    r!   Ú<module>   s     ÿ÷þ
