[silx] 02/04: fix unit test

Frédéric-Emmanuel Picca picca at moszumanska.debian.org
Sat Nov 25 21:38:41 UTC 2017


This is an automated email from the git hooks/post-receive script.

picca pushed a commit to branch patch-queue/master
in repository silx.

commit c7e24039f62dce3c928bc2d73924d5770c780225
Author: Picca Frédéric-Emmanuel <picca at synchrotron-soleil.fr>
Date:   Fri Aug 11 10:15:26 2017 +0200

    fix unit test
    
    
    Gbp-Pq: Name 0003-fix-unit-test.patch
---
 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

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/debian-science/packages/silx.git



More information about the debian-science-commits mailing list