a
    j=ic                     @   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
    )Zfloat_framer   r   o/home/droni/.local/share/virtualenvs/DPS-5Je3_V2c/lib/python3.9/site-packages/pandas/tests/io/excel/conftest.pyframe   s    r   c                   C   s   t  d d S )N   )tmZmakeTimeDataFramer   r   r   r   tsframe   s    r   TF)paramsc                 C   s   | 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)Z	index_colZparse_datesZenginer   )datapathfilepathdf_refr   r   r   r      s    r   )z.xlsz.xlsxz.xlsmz.odsz.xlsbc                 C   s   | j S )z3
    Valid extensions for reading Excel files.
    r   r   r   r   r   read_ext'   s    r   )Zautousec                  c   sD   t d} | sdV  n*|  }| }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ProcessZ
open_files)r   procflistZflist2r   r   r   check_for_file_leaks0   s    

r    )ZpytestZpandas.compatr   Zpandas.util._test_decoratorsutilZ_test_decoratorsr   Zpandas._testingZ_testingr
   Zpandas.io.parsersr   Zfixturer   r   r   r   r   r    r   r   r   r   <module>   s    



	
