From e7a55e018a71f53915ced19cf0d5a87e555104a6 Mon Sep 17 00:00:00 2001 From: henry Date: Tue, 6 Dec 2016 21:22:15 -0800 Subject: [PATCH] Flake8 long kernel string. XFAIL multi put tests. --- pyopencl/elementwise.py | 2 +- test/test_array.py | 7 +++++++ 2 files changed, 8 insertions(+), 1 deletion(-) diff --git a/pyopencl/elementwise.py b/pyopencl/elementwise.py index d3655783..0e35df43 100644 --- a/pyopencl/elementwise.py +++ b/pyopencl/elementwise.py @@ -453,7 +453,7 @@ def get_put_kernel(context, dtype, idx_dtype, vec_count=1): "dest{i}[dest_idx] = (use_fill[{i}] ? src{i}[0] : " "src{i}[i % val_ary_lengths[{i}]]);".format(i=i) for i in range(vec_count) - ) + ) ) return get_elwise_kernel(context, args, body, diff --git a/test/test_array.py b/test/test_array.py index a65699f0..2c27e77f 100644 --- a/test/test_array.py +++ b/test/test_array.py @@ -1104,6 +1104,8 @@ def test_squeeze(ctx_factory): def test_fancy_fill(ctx_factory): + if _PYPY: + pytest.xfail("numpypy: multi value setting is not supported") context = ctx_factory() queue = cl.CommandQueue(context) @@ -1121,6 +1123,8 @@ def test_fancy_fill(ctx_factory): def test_fancy_indexing(ctx_factory): + if _PYPY: + pytest.xfail("numpypy: multi value setting is not supported") context = ctx_factory() queue = cl.CommandQueue(context) @@ -1149,6 +1153,9 @@ def test_fancy_indexing(ctx_factory): def test_multi_put(ctx_factory): + if _PYPY: + pytest.xfail("numpypy: multi value setting is not supported") + context = ctx_factory() queue = cl.CommandQueue(context) -- GitLab