summaryrefslogtreecommitdiff
path: root/silx/math/fft/test
diff options
context:
space:
mode:
authorPicca Frédéric-Emmanuel <picca@synchrotron-soleil.fr>2019-12-23 13:45:09 +0100
committerPicca Frédéric-Emmanuel <picca@synchrotron-soleil.fr>2019-12-23 13:45:09 +0100
commit5d647cf9a6159afd2933da594b9c79ad93d3cd9b (patch)
tree2571025a602f68fc8933b01104dc712d41f84034 /silx/math/fft/test
parent654a6ac93513c3cc1ef97cacd782ff674c6f4559 (diff)
New upstream version 0.12.0~b0+dfsg
Diffstat (limited to 'silx/math/fft/test')
-rw-r--r--silx/math/fft/test/test_fft.py3
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")