← Back
Editing: test_fft_function.cpython-311.pyc
� d�c � �( � d dl Zd dlZd dlZdZd� ZdS )� Na� import pytest import numpy as np from numpy.testing import assert_allclose import scipy import sys import pytest np.random.seed(1234) x = np.random.randn(10) + 1j * np.random.randn(10) X = np.fft.fft(x) # Callable before scipy.fft is imported with pytest.deprecated_call(match=r'2\.0\.0'): y = scipy.ifft(X) assert_allclose(y, x) # Callable after scipy.fft is imported import scipy.fft with pytest.deprecated_call(match=r'2\.0\.0'): y = scipy.ifft(X) assert_allclose(y, x) c �� � t j t j dt g� � ddlm} t | � � rJ �| j dk sJ �ddlm } |j t j j u sJ �d S )Nz-cr )�fftz scipy.fft)�ifft)� subprocess� check_call�sys� executable� TEST_BODY�scipyr �callable�__name__r �__wrapped__�np)r r s �C/usr/lib/python3/dist-packages/scipy/fft/tests/test_fft_function.py�test_fft_functionr s� � � ��3�>�4��;�<�<�<� ��������}�}�����<�;�&�&�&�&���������r�v�{�*�*�*�*�*�*� )�numpyr r r r r � r r �<module>r sF �� � � � � � � � � � � � � � �0 +� +� +� +� +r
Save File
Cancel