From 277c32b0199ac837fd996c665d06b9ab921911ab Mon Sep 17 00:00:00 2001
From: Andreas Kloeckner <inform@tiker.net>
Date: Wed, 18 May 2011 18:21:01 +0200
Subject: [PATCH] Fix pytest_generate_tests_for_pyopencl to actually run on all
 devices.

---
 pyopencl/tools.py | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/pyopencl/tools.py b/pyopencl/tools.py
index a124600f..e9a6665c 100644
--- a/pyopencl/tools.py
+++ b/pyopencl/tools.py
@@ -78,10 +78,11 @@ def pytest_generate_tests_for_pyopencl(metafunc):
             from gc import collect
             collect()
 
-            return cl.Context([device])
+            return cl.Context([self.device])
 
         def __str__(self):
             return "<context getter for %s>" % self.device
+
     if ("device" in metafunc.funcargnames
             or "ctx_getter" in metafunc.funcargnames):
         arg_dict = {}
-- 
GitLab