3
UdK                 @   s   d dl Z d dljjZd dlj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
dddddgd	dd Ze j
dddd ZdS )    N)read_csvc             C   s   | dd S )z?
    Returns the first ten items in fixture "float_frame".
    N
    )Zfloat_framer   r   R/var/www/html/virt/lib64/python3.6/site-packages/pandas/tests/io/excel/conftest.pyframe
   s    r   c               C   s   t j 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engine)r   )Z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 jd} | sdV  n*| j }|j }dV  |j }||ks@t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)tdZsafe_importProcessZ
open_filesAssertionError)r   procflistZflist2r   r   r   check_for_file_leaks.   s    

r   )ZpytestZ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   

