o
    rZhv  ć                   @   s0   d dl mZmZ defddZdefddZdS )	é    )Śfind_binaryŚfind_jarŚbinaryc                 K   sF   ddl }zt| fi |¤ W dS  ty"   | d|  d” Y dS w )zSkip a test via `pytest.skip` if the `binary` executable is not found.
    Keyword arguments are passed to `nltk.internals.find_binary`.r   NzSkipping test because the z binary was not found.)Śpytestr   ŚLookupErrorŚskip)r   Śargsr   © r	   śC/var/www/auris/lib/python3.10/site-packages/nltk/test/setup_fixt.pyŚcheck_binary   s   ’r   Śname_patternc                 K   s   ddl }| d” dS )a'  Skip a test via `pytest.skip` if the `name_pattern` jar is not found.
    Keyword arguments are passed to `nltk.internals.find_jar`.

    TODO: Investigate why the CoreNLP tests that rely on this check_jar failed
    on the CI. https://github.com/nltk/nltk/pull/3060#issuecomment-1268355108
    r   NzMSkipping test because the doctests requiring jars are inconsistent on the CI.)r   r   )r   r   r   r	   r	   r
   Ś	check_jar   s   ’r   N)Znltk.internalsr   r   Śstrr   r   r	   r	   r	   r
   Ś<module>   s    