Skip to content

Commit

Permalink
tests: don't require fftw for tests
Browse files Browse the repository at this point in the history
  • Loading branch information
steven-murray committed Apr 30, 2024
1 parent 69d6c44 commit d2bc14d
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions tests/test_fft.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,15 +14,19 @@
(1, 1, 0, 1),
]

BACKENDS = [NumpyFFT(), FFTW(nthreads=1)]
BACKENDS = [
NumpyFFT(),
]

try:
import pyfftw

BACKENDS.append(FFTW(nthreads=1))

pyfftw.builders._utils._default_threads(4)

BACKENDS.append(FFTW(nthreads=2))
except ValueError:
except (ValueError, ImportError):
# If FFTW was not installed with multithreading, the above will error.
pass

Expand Down

0 comments on commit d2bc14d

Please sign in to comment.