o
    i                     @   s   d dl Z d dlmZ d dlm  mZ d dlmZ	 d dl
mZ e jdd Ze jdd Ze jdd	gd
dd Ze jdd Ze jg dd
dd Ze je  ddd ZdS )    N)is_platform_windowsread_csvc                 C   s   | dd S )z?
    Returns the first ten items in fixture "float_frame".
    N
    )float_framer   r   Y/var/www/edux/Edux_v2/venv/lib/python3.10/site-packages/pandas/tests/io/excel/conftest.pyframe   s   r	   c                   C   s   t  d d S )N   )tmmakeTimeDataFramer   r   r   r   tsframe   s   r   TF)paramsc                 C      | j S )Nparamrequestr   r   r   merge_cells   s   r   c                 C   s"   | dddd}t |dddd}|S )	zI
    Obtain the reference data from read_csv with the Python engine.
    iodatacsvz	test1.csvr   Tpython)	index_colparse_datesenginer   )datapathfilepathdf_refr   r   r   r      s   r   )z.xlsz.xlsxz.xlsmz.odsz.xlsbc                 C   r   )z3
    Valid extensions for reading Excel files.
    r   r   r   r   r   read_ext'   s   r   )autousec                  c   sH    t d} | sdV  dS |  }| }dV  | }||ks"J dS )z
    Fixture to run around every test to ensure that we are not leaking files.

    See also
    --------
    _test_decorators.check_file_leaks
    psutilN)tdsafe_importProcess
open_files)r!   procflistflist2r   r   r   check_for_file_leaks0   s   


r)   )pytestpandas.compatr   pandas.util._test_decoratorsutil_test_decoratorsr"   pandas._testing_testingr   pandas.io.parsersr   fixturer	   r   r   r   r   r)   r   r   r   r   <module>   s"    



	
