U
    /‰d  ã                   @   s(   d dl Zd dlZd dlZdZdd„ ZdS )é    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                  C   sZ   t  tjdtg¡ ddlm}  t| ƒr*t‚| j	dks8t‚ddlm
} |jtjj
ksVt‚d S )Nz-cr   )Úfftz	scipy.fft)Úifft)Ú
subprocessÚ
check_callÚsysÚ
executableÚ	TEST_BODYZscipyr   ÚcallableÚAssertionErrorÚ__name__r   Ú__wrapped__Únp)r   r   © r   úE/tmp/pip-unpacked-wheel-9gxwnfpp/scipy/fft/tests/test_fft_function.pyÚtest_fft_function   s    r   )Znumpyr   r   r   r   r   r   r   r   r   Ú<module>   s   