Skip to content

Commit 2faba1b

Browse files
Test should expected np.float128 to exist
1 parent cf51cba commit 2faba1b

File tree

1 file changed

+9
-1
lines changed

1 file changed

+9
-1
lines changed

mkl_fft/tests/test_interfaces.py

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -117,7 +117,15 @@ def test_numpy_rftn(norm, dtype):
117117
assert np.allclose(x, xx, atol=tol, rtol=tol)
118118

119119

120-
@pytest.mark.parametrize('dtype', [np.float16, np.float128, np.complex256])
120+
def _get_blacklisted_dtypes():
121+
bl_list = []
122+
for dt in ['float16', 'float128', 'complex256']:
123+
if hasattr(np, dt):
124+
bl_list.append(getattr(np, dt))
125+
return bl_list
126+
127+
128+
@pytest.mark.parametrize('dtype', _get_blacklisted_dtypes())
121129
def test_scipy_no_support_for(dtype):
122130
x = np.ones(16, dtype=dtype)
123131
w = mfi.scipy_fft.fft(x)

0 commit comments

Comments
 (0)