From da770deb5ec3615b9af8b2efed4c09f5b3d2a1d2 Mon Sep 17 00:00:00 2001
From: arghdos <arghdos@gmail.com>
Date: Fri, 9 Dec 2016 14:07:41 -0500
Subject: [PATCH] final test fix

---
 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 34a232beb..f4696236d 100644
--- a/test/test_loopy.py
+++ b/test/test_loopy.py
@@ -1938,14 +1938,15 @@ def test_integer_reduction(ctx_factory):
     queue = cl.CommandQueue(ctx)
 
     from loopy.kernel.data import temp_var_scope as scopes
+    from loopy.types import to_loopy_type
 
     n = 200
     for vtype in [np.int32, np.int64]:
         var_int = np.random.randint(1000, size=n, dtype=vtype)
         var_lp = lp.TemporaryVariable('var', initializer=var_int,
                                    read_only=True,
-                                   scopes=scopes.PRIVATE,
-                                   dtype=vtype,
+                                   scope=scopes.PRIVATE,
+                                   dtype=to_loopy_type(vtype),
                                    shape=lp.auto)
 
         reductions = [('max', lambda x: x == np.max(var_int)),
-- 
GitLab