a
    5PÎj²  ã                   @   sD  d dl Z d dlmZ d dlmZ g d¢Ze d¡e d¡ddddddde d	¡ddde d
¡dddddddddde d¡dde d¡dœZzd dlZded< W n ey°   Y n0 zd dl	Z	ded< W n eyØ   Y n0 zd dl
Zded< W n e�y   Y n0 zd dlZded< W n e�y,   Y n0 zd dlZded< W n e�yV   Y n0 zd dlZded< W n e�yˆ   ded< Y n0 zd dlZded< W n e�y²   Y n0 zd dlZded< W n e�yÜ   Y n0 zd dlZded< W n e�y   Y n0 zd dlZded< W n e�y0   Y n0 zd dlZded< W n e�yZ   Y n0 zd dlmZ ded< W n e�yˆ   Y n0 zd dlmZ ded< W n e�y¶   Y n0 zd dlmZ ded< W n e�yä   Y n0 zd dlZded < W n e�y   Y n0 d!d"„ Ze jdd#�d$d%„ ƒZe jdd#�d&d'„ ƒZdS )(é    N)ÚCodec)Úfs)ÚbrotliÚbz2ÚcythonÚdatasetÚ
hypothesisÚfastparquetÚgandivaÚgcsÚgdbÚgzipÚhdfsÚlarge_memoryÚlz4Úmemory_leakÚnopandasÚorcÚpandasÚparquetÚparquet_encryptionÚplasmaÚs3ÚsnappyÚ	substraitÚ
tensorflowÚflightÚslowÚrequires_testing_dataÚzstdr   r   FTr   r   r   r   )r   r   r   r   r	   r   r
   r   r   r   r   r   r   r   r   r   r   r   r   r   r   r   r   r   r   r   r   r   r   r	   r
   r   r   r   r   r   r   r   r   r   )ÚGcsFileSystemr   ©ÚS3FileSystemr   )ÚHadoopFileSystemr   r   c                 C   sü   |j jrÆdt| ƒv rdS g d¢}|D ]$}d |¡t| ƒv r$t| s$ dS q$dt| ƒv rbtd sbdS dt| ƒv r’zdd l}W d	S  ty�   Y dS 0 d
t| ƒv rÆzddlm} W d	S  tyÄ   Y dS 0 t	|j dd	ƒ� rødt| ƒv rædS dt| ƒv � rødS d	S )Nz/pyarrow/tests/T)r   r   r   r   r   r   z
pyarrow/{}zpyarrow/parquet/encryptionr   zpyarrow/cudar   Fz
pyarrow/fsr!   Údoctest_cythonz/pyarrow/_parquet_encryption)
ÚoptionÚdoctestmodulesÚstrÚformatÚdefaultsZpyarrow.cudaÚImportErrorÚ
pyarrow.fsr"   Úgetattr)ÚpathÚconfigZdoctest_groupsÚgroupÚpyarrowr"   © r1   ú`/mounts/lovelace/software/anaconda3/envs/metadmg/lib/python3.9/site-packages/pyarrow/conftest.pyÚpytest_ignore_collect²   s:    
r3   )Zautousec                 c   sf   | j jj}t| j jddƒ}|s"|r\|  d¡}| ¡ � d V  W d   ƒ qb1 sP0    Y  nd V  d S )Nr$   FÚtmpdir)r.   r%   r&   r,   ZgetfixturevalueZas_cwd)ÚrequestÚ	doctest_mÚ	doctest_cr4   r1   r1   r2   Ú_docdirã   s    


&r8   c                 c   sœ   |j jj}t|j jddƒ}|s"|r’t| d< t ¡ }|d }| t|ƒ¡�}| d¡ W d   ƒ n1 sh0    Y  || d< t|ƒ| d< t|ƒ| d< d V  d S )	Nr$   Fr   zpyarrow-fs-example.dats   dataÚlocalZ
local_pathr-   )	r.   r%   r&   r,   r   ZLocalFileSystemZopen_output_streamr'   Úwrite)Zdoctest_namespacer5   Ztmp_pathr6   r7   r9   r-   Ústreamr1   r1   r2   Úadd_fsø   s    
(r<   )Zpytestr0   r   r   ÚgroupsZis_availabler)   r   r*   r	   Zpyarrow.gandivaZpyarrow.datasetZpyarrow.orcr   Zpyarrow.parquetZpyarrow.parquet.encryptionZpyarrow.plasmar   Zpyarrow.flightr+   r    r"   r#   Zpyarrow.substraitr3   Zfixturer8   r<   r1   r1   r1   r2   Ú<module>   sà    ä1


