U
    e                     @   s0   d dl mZmZ edddZedddZdS )	    )find_binaryfind_jar)binaryc                 K   sD   ddl }zt| f| W n& tk
r>   |d|  d Y nX dS )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	   U/var/www/html/assets/scripts/venv/lib/python3.8/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   