o
    �¨Êh#	  ã                   @   s<   d Z ddlmZ ddlZddlmZ dZ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.
é    )ÚStringIONz2The 'verbose' keyword in pd.read_csv is deprecatedc              	   C   s"  | }d}|j dkrNd}tjt|d��2 tjttdd�� |jt	|ƒdd� W d   ƒ n1 s/w   Y  W d   ƒ d S W d   ƒ d S 1 sGw   Y  d S tjttdd�� |jt	|ƒdd� W d   ƒ n1 sjw   Y  | 
¡ }|j d	krˆd
|jv sJ ‚d|jv s†J ‚d S |jdks�J ‚d S )NzNa,b,c,d
one,1,2,3
one,1,2,3
,1,2,3
one,1,2,3
,1,2,3
,1,2,3
one,1,2,3
two,1,2,3Úpyarrowú?The 'verbose' option is not supported with the 'pyarrow' engine©ÚmatchF©r   Úcheck_stacklevelT)ÚverboseÚcúTokenization took:úParser memory cleanup took:zFilled 3 NA values in column a
©ÚengineÚpytestÚraisesÚ
ValueErrorÚtmÚassert_produces_warningÚFutureWarningÚdepr_msgÚread_csvr   Ú
readouterrÚout©Úall_parsersÚcapsysÚparserÚdataÚmsgÚcaptured© r    ú\/var/www/html/env/lib/python3.10/site-packages/pandas/tests/io/parser/common/test_verbose.pyÚtest_verbose_read   s6   

ÿý
ÿü
ÿûÿý
r"   c              	   C   s&  | }d}|j dkrOd}tjt|d��3 tjttdd�� |jt	|ƒddd	� W d   ƒ n1 s0w   Y  W d   ƒ d S W d   ƒ d S 1 sHw   Y  d S tjttdd�� |jt	|ƒddd	� W d   ƒ n1 slw   Y  | 
¡ }|j d
krŠd|jv s�J ‚d|jv sˆJ ‚d S |jdks‘J ‚d S )Nz\a,b,c,d
one,1,2,3
two,1,2,3
three,1,2,3
four,1,2,3
five,1,2,3
,1,2,3
seven,1,2,3
eight,1,2,3r   r   r   Fr   Tr   )r	   Ú	index_colr
   r   r   zFilled 1 NA values in column a
r   r   r    r    r!   Útest_verbose_read21   s6   

ÿý
ÿü
ÿûÿý
r$   )
Ú__doc__Úior   r   Úpandas._testingÚ_testingr   r   r"   r$   r    r    r    r!   Ú<module>   s    #