From bd3bb3962b190fcf5ac3ec33f81f768985f46fe5 Mon Sep 17 00:00:00 2001
From: arghdos <arghdos@gmail.com>
Date: Fri, 9 Dec 2016 14:54:18 -0500
Subject: [PATCH] old numpy compatibility

---
 test/test_loopy.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/test/test_loopy.py b/test/test_loopy.py
index ed35251e0..8c46e52d7 100644
--- a/test/test_loopy.py
+++ b/test/test_loopy.py
@@ -1942,7 +1942,7 @@ def test_integer_reduction(ctx_factory):
 
     n = 200
     for vtype in [np.int32, np.int64]:
-        var_int = np.random.randint(1000, size=n, dtype=vtype)
+        var_int = np.random.randint(1000, size=n).astype(vtype)
         var_lp = lp.TemporaryVariable('var', initializer=var_int,
                                    read_only=True,
                                    scope=scopes.PRIVATE,
-- 
GitLab