3
®ybK  ã               @   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   úB/tmp/pip-install-4cy230dp/pandas/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   

