| Server IP : 217.160.0.135 / Your IP : 216.73.217.85 Web Server : Apache System : Linux www 6.18.52-i1-ampere #1203 SMP Mon Sep 14 18:29:59 CEST 2026 aarch64 User : sws1074145052 ( 1074145052) PHP Version : 8.3.32 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : OFF | Sudo : OFF | Pkexec : OFF Directory : /lib/python3/dist-packages/scipy/fftpack/tests/__pycache__/ |
Upload File : |
�
d�ci � �T � d Z ddlmZ ddlZddlZddlmZ ddlZ G d� d� � ZdS )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 � � e Zd Zd� ZdS )�TestFFTPackImportc �| �� t t j � � j }d�|� d� � D ]�}|dz |j v r�t
j t |� � � � 5 }t t �fd�|D � � � � d� |� � � � d d d � � n# 1 swxY w Y ��d S )Nz\s*from.+\.fftpack import .*\nz*.py�fftpackc 3 �D �K � | ]}t j �|� � V � �d S )N)�re� fullmatch)�.0�line�regexps ��A/usr/lib/python3/dist-packages/scipy/fftpack/tests/test_import.py� <genexpr>z8TestFFTPackImport.test_fftpack_import.<locals>.<genexpr> sF �� � � � .� .� $� !#��V�T� :� :�:� .� .� .� .� .� .� z#{0} contains an import from fftpack)r �scipy�__file__�parent�rglob�parents�tokenize�open�strr �all�format)�self�base�path�filer s @r �test_fftpack_importz%TestFFTPackImport.test_fftpack_import s+ �� ��E�N�#�#�*��2���J�J�v�&�&� L� L�D��i��4�<�/�/�� ��s�4�y�y�)�)�
L�T��� .� .� .� .�(,�.� .� .� .� .�=�D�D�T�J�J�L� L� L�
L�
L�
L�
L�
L�
L�
L�
L�
L�
L�
L����
L�
L�
L�
L�� L� Ls �'=B0�0B4 �7B4 N)�__name__�
__module__�__qualname__r � r r r r s( � � � � � �L� L� L� L� Lr r ) �__doc__�pathlibr r
r �
numpy.testingr r r r$ r r �<module>r( s� �� � � � � � � � � � � � � ���� !� !� !� !� !� !� ����L� L� L� L� L� L� L� L� L� Lr