U
    KvfR                     @   s$   d dl Z d dlZdd Zdd ZdS )    Nc                  C   sD   d} t jd |  d } tj| ddd}|  |j}|dks@td S )Nz|import statsmodels.api as sm; import sys; mods = [x for x in sys.modules if 'matplotlib.pyplot' in x]; assert not mods, modsz -c ""T)shell	close_fdsr   )sys
executable
subprocessPopenwait
returncodeAssertionError)cmdprc r   B/tmp/pip-unpacked-wheel-2v6byqio/statsmodels/tests/test_package.pytest_lazy_imports   s    r   c                  C   sB   t jd } tj| dtjtjd}| }|j}|dks>t|d S )Nz& -OO -c "import statsmodels.api as sm"T)r   stdoutstderrr   )r   r   r   r   PIPEcommunicater
   r   )r   r   outr   r   r   r   "test_docstring_optimization_compat   s    
r   )r   r   r   r   r   r   r   r   <module>   s   