a
     ˜ëjv  ã                   @   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   sF   ddl }zt| fi |¤Ž W n$ ty@   | d| › d�¡ Y n0 dS )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	   úS/mnt/bigstor/www/usecases/.venv/lib/python3.9/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   