8000 #5354 Added testcase for clip-fft in the test_regression.py · maniteja123/numpy@ac6154c · GitHub
[go: up one dir, main page]

Skip to content

Commit ac6154c

Browse files
committed
numpy#5354 Added testcase for clip-fft in the test_regression.py
1 parent c6e6cd7 commit ac6154c

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

numpy/core/tests/test_regression.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@
1919
)
2020
from numpy.testing.utils import _assert_valid_refcount
2121
from numpy.compat import asbytes, asunicode, asbytes_nested, long, sixu
22+
from numpy.fft import fft2
2223

2324
rlevel = 1
2425

@@ -2103,10 +2104,8 @@ def __eq__(self, other):
21032104
assert_equal(np.int32(10) == x, "OK")
21042105
assert_equal(np.array([10]) == x, "OK")
21052106

2106-
def test_fft(self):
2107-
#PR 5386
2108-
import numpy as np
2109-
from numpy.fft import fft2
2107+
def test_clip_method_crash(self):
2108+
## Check segfault reported in gh-5354 doesn't occur anymore
21102109
size = 256
21112110
t = np.linspace(start=0, stop=50*np.pi, endpoint=False, num=size)
21122111
x,y = np.meshgrid(t, t)
@@ -2115,5 +2114,6 @@ def test_fft(self):
21152114
F_min = F.min()
21162115
F = F.clip(F_min)
21172116

2117+
21182118
if __name__ == "__main__":
21192119
run_module_suite()

0 commit comments

Comments
 (0)
0