From e56fcc96083ae812a4f64f287fbb2aff4586d579 Mon Sep 17 00:00:00 2001 From: Andreas Kloeckner Date: Thu, 24 Sep 2009 14:27:51 -0400 Subject: [PATCH] Improve automatic test runner. --- test/test_wrapper.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/test/test_wrapper.py b/test/test_wrapper.py index f68b5851..dc80bcdf 100644 --- a/test/test_wrapper.py +++ b/test/test_wrapper.py @@ -253,6 +253,9 @@ class TestCL: def pytest_generate_tests(metafunc): if have_cl(): import pyopencl as cl + else: + # will still show "skipped" messages + return if ("device" in metafunc.funcargnames or "context" in metafunc.funcargnames): -- GitLab