o
    tBh@                     @   s$   d dl Z d dlZd dlZdd ZdS )    Nc                  C   s   t tjjjd } |  std t tjj}|  	d}dd |D }|
dD ]}||j}|d}||v s@J q-dS )	zACheck the consistence of the files generated from template files.z
.gitignorez(Tests are not run from the source folder
c                 S   s   g | ]}t |qS  )pathlibPath).0liner   r   /var/www/html/riverr-enterprise-integrations-main/venv/lib/python3.10/site-packages/sklearn/utils/tests/test_cython_templating.py
<listcomp>   s    zEtest_files_generated_by_templates_are_git_ignored.<locals>.<listcomp>z**/*.tp N)r   r   sklearn__file__parentexistspytestskip	read_textsplitglobrelative_towith_suffix)gitignore_filebase_dirignored_filesfilenamefilename_wo_tempita_suffixr   r   r   1test_files_generated_by_templates_are_git_ignored   s   

r   )r   r   r   r   r   r   r   r   <module>   s    