U
    /e                     @   s   d dl mZ dd ZdS )    )Pathc               
      s   t tjjj} | d d d }| d d d }| d d d }d |||fD ]D}t|d	d
.}t fdd|D st  d| W 5 Q R X qLdS )zSWhen the environment.yaml changes in CI, make sure to change it in the docs as wellZdocssourcezdevelop.rstz.githubZ	workflowszadditional.ymlzupstream.ymlzenvironment-3.10.yamlutf8)encodingc                 3   s   | ]} |kV  qd S )N ).0lineZ
latest_envr   8/tmp/pip-unpacked-wheel-dbjnr7gq/dask/tests/test_docs.py	<genexpr>   s    z9test_development_guidelines_matches_ci.<locals>.<genexpr>z not found in N)r   __file__parentopenanyAssertionError)root_dirZdevelopment_doc_fileZadditional_ci_fileZupstream_ci_filefilenamefr   r	   r
   &test_development_guidelines_matches_ci   s    
r   N)pathlibr   r   r   r   r   r
   <module>   s   