
    M/Ph[                         d dl Z d dlZd dlmZ d dlZej                            ed          d             Zej                            ed          d             ZdS )    N)PYTHON_IMPL_WASMz&Can't start subprocess in WASM/Pyodide)reasonc                      d} t           j        dz   | z   dz   } t          j        | dd          }|                                 |j        }|dk    sJ 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)cmdprcs      ^/var/www/html/test/jupyter/venv/lib/python3.11/site-packages/statsmodels/tests/test_package.pytest_lazy_importsr   	   s]    #C .7
"S
(3
.CDD999AFFHHH	
B777777    c                      t           j        dz   } t          j        | dt          j        t          j                  }|                                }|j        }|dk    s
J |            d S )Nz& -OO -c "import statsmodels.api as sm"T)r   stdoutstderrr   )r	   r
   r   r   PIPEcommunicater   )r   r   outr   s       r   "test_docstring_optimization_compatr      s`     .C
CCD *	1 	1 	1A
--//C	
B777C77777r   )	r   r	   statsmodels.compat.pythonr   pytestmarkskipifr   r    r   r   <module>r!      s        



 6 6 6 6 6 6  3   
 
	 
 3    	   r   