ó
áp7]c           @   s]   d  d l  Z  d  d l Z d  d l m Z d  d l m Z e j j e d d d    Z d S(   i˙˙˙˙N(   t   PY3(   t   PLATFORM_WINt   reasons   subprocess does not play nicelyc          C   sh   d }  t  r d n d } t j | d |  d d t d t } | j   | j } | d k sd t  d  S(	   Ns|   import statsmodels.api as sm; import sys; mods = [x for x in sys.modules if 'matplotlib.pyplot' in x]; assert not mods, modst   python3t   pythons    -c "t   "t   shellt	   close_fdsi    (   R    t
   subprocesst   Popent   Truet   waitt
   returncodet   AssertionError(   t   cmdt   pyexet   pt   rc(    (    s=   lib/python2.7/site-packages/statsmodels/tests/test_package.pyt   test_lazy_imports	   s    
	(	   R   t   pytestt   statsmodels.compatR    t   statsmodels.compat.platformR   t   markt   skipifR   (    (    (    s=   lib/python2.7/site-packages/statsmodels/tests/test_package.pyt   <module>   s   