Ë
    âQ(h„  ã                   óT   — d Z ddlmZ ddlZddlZddlZddlmZ ddlZ G d„ d«      Z	y)a†  Test possibility of patching fftpack with pyfftw.

No module source outside of scipy.fftpack should contain an import of
the form `from scipy.fftpack import ...`, so that a simple replacement
of scipy.fftpack by the corresponding fftw interface completely swaps
the two FFT implementations.

Because this simply inspects source files, we only need to run the test
on one version of Python.
é    )ÚPathN)Úassert_c                   óD   — e Zd Zej                  j
                  d„ «       Zy)ÚTestFFTPackImportc                 óH  ‡— t        t        j                  «      j                  }dŠ|j	                  d«      D ]\  }|dz  |j
                  v rŒt        j                  t        |«      «      5 }t        t        ˆfd„|D «       «      |› d�«       d d d «       Œ^ y # 1 sw Y   ŒixY w)Nz\s*from.+\.fftpack import .*\nz*.pyÚfftpackc              3   óL   •K  — | ]  }t        j                  ‰|«       –— Œ y ­w)N)ÚreÚ	fullmatch)Ú.0ÚlineÚregexps     €ú]/var/www/skyplay_api_hub/venv/lib/python3.12/site-packages/scipy/fftpack/tests/test_import.pyú	<genexpr>z8TestFFTPackImport.test_fftpack_import.<locals>.<genexpr>   s'   øè ø€ ò .Ø $ô !#§¡¨V°TÓ :Ô:ñ .ùs   ƒ!$z  contains an import from fftpack)r   ÚscipyÚ__file__ÚparentÚrglobÚparentsÚtokenizeÚopenÚstrr   Úall)ÚselfÚbaseÚpathÚfiler   s       @r   Útest_fftpack_importz%TestFFTPackImport.test_fftpack_import   s¥   ø€ ä”E—N‘NÓ#×*Ñ*ˆØ2ˆØ—J‘J˜vÓ&ò 	CˆDØ�iÑ 4§<¡<Ñ/Øô —‘œs 4›yÓ)ð C¨TÜœó .Ø(,ô.ó .à˜&Ð @ÐAôC÷Cð Cñ	C÷
Cð Cús   Á+"BÂB!	N)Ú__name__Ú
__module__Ú__qualname__ÚpytestÚmarkÚslowr   © ó    r   r   r      s    „ Ø‡[�[×ÑñCó ñCr&   r   )
Ú__doc__Úpathlibr   r
   r   r"   Únumpy.testingr   r   r   r%   r&   r   ú<module>r*      s*   ðñ	õ Û 	Û Û Ý !Û ÷Cò Cr&   