diff --git a/test/test_wrapper.py b/test/test_wrapper.py index 505f56ad8b45ca842c3b6fdbd0992411a542ab21..903da75813f097d5db338430c75db0f988c0d66a 100644 --- a/test/test_wrapper.py +++ b/test/test_wrapper.py @@ -881,7 +881,7 @@ def test_global_offset(ctx_factory): def test_sub_buffers(ctx_factory): ctx = ctx_factory() - if (ctx._get_cl_version() < (1, 1) and + if (ctx._get_cl_version() < (1, 1) or cl.get_cl_header_version() < (1, 1)): from pytest import skip skip("sub-buffers are only available in OpenCL 1.1") @@ -911,7 +911,7 @@ def test_spirv(ctx_factory): ctx = ctx_factory() queue = cl.CommandQueue(ctx) - if (ctx._get_cl_version() < (2, 1) and + if (ctx._get_cl_version() < (2, 1) or cl.get_cl_header_version() < (2, 1)): from pytest import skip skip("SPIR-V program creation only available in OpenCL 2.1")