
    gi                     v    d dl Z d dlZd dlZd dlZd dlmZ ej                  j                  ed      d        Zy)    N)IS_WASMzcan't start subprocess)reasonc                      t        j                  d      } t        j                  t        j
                  d| ft        j                  t        j                  dd      }|j                  dk(  sJ |j                         y )Na  
        import sys
        from importlib.util import LazyLoader, find_spec, module_from_spec

        # create lazy load of numpy as np
        spec = find_spec("numpy")
        module = module_from_spec(spec)
        sys.modules["numpy"] = module
        loader = LazyLoader(spec.loader)
        loader.exec_module(module)
        np = module

        # test a subpackage import
        from numpy.lib import recfunctions  # noqa: F401

        # test triggering the import of the package
        np.ndarray
        z-czutf-8F)stdoutstderrencodingcheckr   )
textwrapdedent
subprocessrunsys
executablePIPESTDOUT
returncoder   )codeps     T/var/www/html/audio_env/lib/python3.12/site-packages/numpy/tests/test_lazyloading.pytest_lazy_loadr   
   sh     ??  D$ 		t$  	A <<1&ahh&    )	r   r   r
   pytestnumpy.testingr   markskipifr    r   r   <module>r      s=     
   ! G$<=' >'r   