B
    ÏÂŽ[‚  ã               @   s    d dl Z d dlmZ dd„ ZdS )é    N)Úwhichc              G   s0   x&| D ]}t |ƒstj d |¡¡S qW dd„ S )zN
    Decorator to skip test when at least one of `commands` is not found.
    z1This test runs only if command '{0}' is installedc             S   s   | S )N© )Úfr   r   ú4lib/python3.7/site-packages/nbconvert/tests/utils.pyÚ<lambda>   s    z#onlyif_cmds_exist.<locals>.<lambda>)r   ÚpytestZmarkÚskipÚformat)ZcommandsÚcmdr   r   r   Úonlyif_cmds_exist   s
    

r   )r   Zipython_genutils.py3compatr   r   r   r   r   r   Ú<module>   s   