summaryrefslogtreecommitdiff
path: root/patches/0003-fix-unit-test.patch
diff options
context:
space:
mode:
authorPicca Frédéric-Emmanuel <picca@debian.org>2017-11-25 17:02:19 +0100
committerPicca Frédéric-Emmanuel <picca@debian.org>2017-11-25 17:02:19 +0100
commitf419d864bfd0f271bb0c3c2f5485f81fda869906 (patch)
tree057bfc1368eda812394ecb94a250380ffc1a86ba /patches/0003-fix-unit-test.patch
Import silx_0.6.1+dfsg-1.debian.tar.xz
[dgit import tarball silx 0.6.1+dfsg-1 silx_0.6.1+dfsg-1.debian.tar.xz]
Diffstat (limited to 'patches/0003-fix-unit-test.patch')
-rw-r--r--patches/0003-fix-unit-test.patch29
1 files changed, 29 insertions, 0 deletions
diff --git a/patches/0003-fix-unit-test.patch b/patches/0003-fix-unit-test.patch
new file mode 100644
index 0000000..e441748
--- /dev/null
+++ b/patches/0003-fix-unit-test.patch
@@ -0,0 +1,29 @@
+From: =?utf-8?q?Picca_Fr=C3=A9d=C3=A9ric-Emmanuel?=
+ <picca@synchrotron-soleil.fr>
+Date: Fri, 11 Aug 2017 10:15:26 +0200
+Subject: fix unit test
+
+---
+ silx/opencl/common.py | 9 ++++++++-
+ 1 file changed, 8 insertions(+), 1 deletion(-)
+
+diff --git a/silx/opencl/common.py b/silx/opencl/common.py
+index ebf50c7..5661530 100644
+--- a/silx/opencl/common.py
++++ b/silx/opencl/common.py
+@@ -61,7 +61,14 @@ else:
+ pyopencl = None
+ else:
+ import pyopencl.array as array
+- mf = pyopencl.mem_flags
++
++if pyopencl is None:
++ class mf(object):
++ WRITE_ONLY = 1
++ READ_ONLY = 1
++ READ_WRITE = 1
++else:
++ mf = pyopencl.mem_flags
+
+ if pyopencl is None:
+ # Define default mem flags