summaryrefslogtreecommitdiff
path: root/debian/patches/0003-fix-unit-test.patch
diff options
context:
space:
mode:
Diffstat (limited to 'debian/patches/0003-fix-unit-test.patch')
-rw-r--r--debian/patches/0003-fix-unit-test.patch29
1 files changed, 0 insertions, 29 deletions
diff --git a/debian/patches/0003-fix-unit-test.patch b/debian/patches/0003-fix-unit-test.patch
deleted file mode 100644
index 07523e7..0000000
--- a/debian/patches/0003-fix-unit-test.patch
+++ /dev/null
@@ -1,29 +0,0 @@
-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 9a04035..17c67d1 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