From 87b3c46cef322b391c4a0e4ca39739e0022c6980 Mon Sep 17 00:00:00 2001
From: Andreas Kloeckner <inform@tiker.net>
Date: Tue, 31 Jan 2012 22:03:11 -0500
Subject: [PATCH] Make sure tests are executed from test directory.

---
 test/test_wrapper.py | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/test/test_wrapper.py b/test/test_wrapper.py
index 4dcd1183..1fb3487f 100644
--- a/test/test_wrapper.py
+++ b/test/test_wrapper.py
@@ -363,6 +363,9 @@ class TestCL:
     def test_header_dep_handling(self, ctx_factory):
         context = ctx_factory()
 
+        from os.path import exists
+        assert exists("empty-header.h") # if this fails, change dir to pyopencl/test
+
         kernel_src = """
         #include <empty-header.h>
         kernel void zonk(global int *a) 
-- 
GitLab