o
    rZh                     @   sB   d dl Z d dlmZ e jdddd Ze jdddd	d
 ZdS )    N)CorpusReaderT)autousec                 C   sD   zddl m} | j|d | j|d W dS  ty!   Y dS w )z(Disable matplotlib plotting in test coder   NZgcashow)Zmatplotlib.pyplotZpyplotpatchobjectImportError)ZmockerZplt r   A/var/www/auris/lib/python3.10/site-packages/nltk/test/conftest.py	mock_plot   s   r
   module)scoper   c                  c   sN    dV  ddl } t| jD ]}t| j|d}t|tr$t|dr$|  qdS )zc
    After each test session ends (either doctest or unit test),
    unload any loaded corpora
    Nr   _unload)Znltk.corpusdirZcorpusgetattr
isinstancer   hasattrr   )Znltknameobjr   r   r	   teardown_loaded_corpora   s   r   )ZpytestZnltk.corpus.readerr   Zfixturer
   r   r   r   r   r	   <module>   s    

