HOME


sh-3ll 1.0
DIR:/usr/local/lib64/python3.6/site-packages/pandas/tests/io/excel/__pycache__/
Upload File :
Current File : //usr/local/lib64/python3.6/site-packages/pandas/tests/io/excel/__pycache__/conftest.cpython-36.pyc
3

���hK�@s�ddlZddljjZddljZddlm	Z	ej
dd��Zej
dd��Zej
ddgd	�d
d��Z
ej
dd
��Zej
dddddgd	�dd��Zej
dd�dd��ZdS)�N)�read_csvcCs|dd�S)z?
    Returns the first ten items in fixture "float_frame".
    N�
�)Zfloat_framerr�@/tmp/pip-build-5_djhm0z/pandas/pandas/tests/io/excel/conftest.py�frame
srcCstj�dd�S)N�)�tmZmakeTimeDataFramerrrr�tsframesr	TF)�paramscCs|jS)N)�param)�requestrrr�merge_cellssr
cCs"|dddd�}t|dddd�}|S)	zI
    Obtain the reference data from read_csv with the Python engine.
    �io�data�csvz	test1.csvrT�python)Z	index_colZparse_datesZengine)r)Zdatapath�filepath�df_refrrrrsrz.xlsz.xlsxz.xlsmz.odsz.xlsbcCs|jS)z3
    Valid extensions for reading Excel files.
    )r)rrrr�read_ext&sr)ZautouseccsDtjd�}|sdVn*|j�}|j�}dV|j�}||ks@t�dS)z�
    Fixture to run around every test to ensure that we are not leaking files.

    See also
    --------
    _test_decorators.check_file_leaks
    �psutilN)�tdZsafe_import�ProcessZ
open_files�AssertionError)r�proc�flistZflist2rrr�check_for_file_leaks.s

r)ZpytestZpandas.util._test_decorators�utilZ_test_decoratorsrZpandas._testingZ_testingrZpandas.io.parsersrZfixturerr	r
rrrrrrr�<module>s