3
­d3  ã               @   s4   d Z ddlZddlZddlZddlmZ dd„ ZdS )a  Test suite that runs all NLTK tests.

This module, `nltk.test.all`, is named as the NLTK ``test_suite`` in the
project's ``setup-eggs.py`` file.  Here, we create a test suite that
runs all of our doctests, and return it for processing by the setuptools
test harness.

é    N)Úglobc              C   s@   t jjtƒ} tt jj| dƒƒ}dd„ |D ƒ}tjdd„ |D ƒƒS )Nz	*.doctestc             S   s   g | ]}t jj|ƒ‘qS © )ÚosÚpathÚbasename)Ú.0r   r   r   ú-/tmp/pip-build-v9q4h5k9/nltk/nltk/test/all.pyú
<listcomp>   s    z$additional_tests.<locals>.<listcomp>c             S   s   g | ]}t j|ƒ‘qS r   )ÚdoctestZDocFileSuite)r   Úfiler   r   r   r	      s    )r   r   ÚdirnameÚ__file__r   ÚjoinÚunittestZ	TestSuite)ÚdirÚpathsÚfilesr   r   r   Úadditional_tests   s    r   )Ú__doc__r
   Úos.pathr   r   r   r   r   r   r   r   Ú<module>   s
   