o
    žD®fŠ  ã                   @   sD   d dl Z d dlZd dlmZmZmZ d dlZej d¡dd„ ƒZ	dS )é    N)Ú
LazyLoaderÚ	find_specÚmodule_from_specz$ignore:The NumPy module was reloadedc            	   	   C   sÔ   t j d¡} i }tt j ¡ ƒD ]\}}|d d… dkr%|||< t j |¡ qz4tdƒ}t|ƒ}|t jd< t|jƒ}| 	|¡ |}ddl
m} |j W | rY| t jd< t j |¡ d S d S | ri| t jd< t j |¡ w w )NÚnumpyé   znumpy.r   )Úrecfunctions)ÚsysÚmodulesÚpopÚlistÚitemsr   r   r   ÚloaderÚexec_moduleÚ	numpy.libr   ÚndarrayÚupdate)	Ú	old_numpyÚnumpy_modulesÚmod_nameÚmodÚspecÚmoduler   Únpr   © r   úU/home/ubuntu/webapp/venv/lib/python3.10/site-packages/numpy/tests/test_lazyloading.pyÚtest_lazy_load   s.   €



þ
þr   )
r   Ú	importlibÚimportlib.utilr   r   r   ÚpytestÚmarkÚfilterwarningsr   r   r   r   r   Ú<module>   s    
