
    gv                     ,    d dl mZmZ defdZdefdZy)    )find_binaryfind_jarbinaryc                 n    ddl }	 t        | fi | y# t        $ r |j                  d|  d       Y yw xY 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   s      I/var/www/openai/venv/lib/python3.12/site-packages/nltk/test/setup_fixt.pycheck_binaryr      sB     QF#d# Q08NOPQs    44name_patternc                 .    ddl }|j                  d       y)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   s      r   	check_jarr      s     
KKW    N)nltk.internalsr   r   strr   r    r   r   <module>r      s"    0Q QC r   