Skip to content

Commit 504abaf

Browse files
committed
Fixing test_libfft
1 parent c926979 commit 504abaf

File tree

2 files changed

+9
-3
lines changed

2 files changed

+9
-3
lines changed

tests/test_libfft.py

+5-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
from __future__ import print_function
22
from time import time
33
import numpy as np
4+
from mpi4py_fft import fftw
45
from mpi4py_fft.libfft import FFT
56

67
has_pyfftw = True
@@ -20,7 +21,10 @@ def test_libfft():
2021

2122
dims = (1, 2, 3)
2223
sizes = (7, 8, 9)
23-
types = 'fdgFDG'
24+
types = ''
25+
for t in 'fdg':
26+
if fftw.get_fftw_lib(t):
27+
types += t+t.upper()
2428

2529
for use_pyfftw in (False, True):
2630
if has_pyfftw is False and use_pyfftw is True:

tests/test_mpifft.py

+4-2
Original file line numberDiff line numberDiff line change
@@ -52,8 +52,10 @@ def test_mpifft():
5252
comm = MPI.COMM_WORLD
5353
dims = (2, 3, 4,)
5454
sizes = (16, 17)
55-
types = 'fFdDgG'
56-
55+
types = ''
56+
for t in 'fdg':
57+
if fftw.get_fftw_lib(t):
58+
types += t+t.upper()
5759
for typecode in types:
5860
for dim in dims:
5961
for shape in product(*([sizes]*dim)):

0 commit comments

Comments
 (0)