o
    ÛñhÖ  ã                   @   sF   d dl Zd dl mZ d dlZd dlmZ dd„ Zeeƒ ƒ dd„ Z	dS )é    N)Újoin)Úget_cpp_testsc                 C   sl   t ƒ D ]0}|fdd„}|j |_|_| d |_d|jv r#tj |¡}nd|jv r.tj |¡}|| |j< qdS )zL
    Inject C++ tests as Python functions into namespace `ns` (a dict).
    c                 S   s
   | ƒ  d S )N© )Úcaser   r   úT/var/www/vscode/kcb/lib/python3.10/site-packages/pyarrow/tests/test_cpp_internals.pyÚwrapper    s   
z!inject_cpp_tests.<locals>.wrapperÚ__name__ÚnumpyÚpandasN)	r   Únamer   Ú__qualname__Ú
__module__ÚpytestÚmarkr	   r
   )Únsr   r   r   r   r   Úinject_cpp_tests   s   



õr   c                  C   sX   t j t j t¡¡} t| dƒ}t|dƒ}t|ddƒ}t j |¡s"J ‚t j |¡s*J ‚d S )Nz..ÚincludeÚarrowÚpython)ÚosÚpathÚdirnameÚabspathÚ__file__ÚpjoinÚexists)ÚsourceÚpyarrow_dirÚpyarrow_includeÚpyarrow_cpp_includer   r   r   Útest_pyarrow_include/   s   

r    )
Úos.pathr   r   r   r   Úpyarrow._pyarrow_cpp_testsr   r   Úglobalsr    r   r   r   r   Ú<module>   s   
