U
    ?h                     @   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   S/var/www/html/venv/lib/python3.8/site-packages/scipy/fft/tests/test_fft_function.pytest_fft_function   s    r   )numpyr   r   r   r   r   r   r   r   r   <module>   s   