nltk.test.setup_fixt module

nltk.test.setup_fixt.check_binary(binary: str, **args)[source]

Skip a test via pytest.skip if the binary executable is not found. Keyword arguments are passed to nltk.internals.find_binary.

Parameters

binary (str) –

nltk.test.setup_fixt.check_jar(name_pattern: str, **args)[source]

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

Parameters

name_pattern (str) –