From d5773d77d2f7bf4611ada9fc96f1944f3df3a78b Mon Sep 17 00:00:00 2001 From: arghdos <arghdos@gmail.com> Date: Fri, 9 Dec 2016 16:13:42 -0500 Subject: [PATCH] another try --- test/test_loopy.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/test/test_loopy.py b/test/test_loopy.py index c43e06a8c..e41d55b85 100644 --- a/test/test_loopy.py +++ b/test/test_loopy.py @@ -1959,8 +1959,9 @@ def test_integer_reduction(ctx_factory): var_int[out[1]] == np.min(var_int)))] for reduction, function in reductions: - kstr = (("out" if 'arg' not in reduction - else "out[0], out[1]") + ' = %s(k, var[k])' % reduction)` + kstr = ("out" if 'arg' not in reduction + else "out[0], out[1]") + kstr += ' = {0}(k, var[k])'.format(reduction) knl = lp.make_kernel('{[k]: 0<=k<n}', kstr, [var_lp, '...']) -- GitLab