o
    iv                     @   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 )zSkip 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	   O/var/www/edux/Edux_v2/venv/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)nltk.internalsr   r   strr   r   r	   r	   r	   r
   <module>   s    