From 40d40b89ab79c6e1d68b1b63a2d4bfa489ef55f5 Mon Sep 17 00:00:00 2001
From: Andreas Kloeckner <inform@tiker.net>
Date: Mon, 18 Dec 2017 15:29:11 -0600
Subject: [PATCH] Create separate test test_list_builder_with_empty_elim

---
 test/test_algorithm.py | 10 ++++++++++
 1 file changed, 10 insertions(+)

diff --git a/test/test_algorithm.py b/test/test_algorithm.py
index 57373c7e..0d956c1e 100644
--- a/test/test_algorithm.py
+++ b/test/test_algorithm.py
@@ -848,6 +848,16 @@ def test_list_builder(ctx_factory):
     assert inf.count == 3000
     assert (inf.lists.get()[-6:] == [1, 2, 2, 3, 3, 3]).all()
 
+
+def test_list_builder_with_empty_elim(ctx_factory):
+    from pytest import importorskip
+    importorskip("mako")
+
+    context = ctx_factory()
+    queue = cl.CommandQueue(context)
+
+    from pyopencl.algorithm import ListOfListsBuilder
+
     builder = ListOfListsBuilder(
         context,
         [("mylist1", np.int32), ("mylist2", np.int32)],
-- 
GitLab