diff options
Diffstat (limited to 'silx/math/fft/test/test_fft.py')
-rw-r--r-- | silx/math/fft/test/test_fft.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/silx/math/fft/test/test_fft.py b/silx/math/fft/test/test_fft.py index 51f846f..358d0ee 100644 --- a/silx/math/fft/test/test_fft.py +++ b/silx/math/fft/test/test_fft.py @@ -123,7 +123,8 @@ class TestFFT(ParametricTestCase): "opencl back-end requires pyopencl and gpyfft") def test_opencl(self): from silx.opencl.common import ocl - self.__run_tests(backend="opencl", ctx=ocl.create_context()) + if ocl is not None: + self.__run_tests(backend="opencl", ctx=ocl.create_context()) @unittest.skipIf(not __have_fftw__, "fftw back-end requires pyfftw") |