diff --git a/test/test_wrapper.py b/test/test_wrapper.py
index 15aa1bc2a17ee6960354a00ff813b30a7f4d9d5c..19087c7da8b698c8019f27a0399ff1b873bd955c 100644
--- a/test/test_wrapper.py
+++ b/test/test_wrapper.py
@@ -977,10 +977,8 @@ def test_spirv(ctx_factory):
         pytest.skip("SPIR-V program creation only available "
                 "in OpenCL 2.1 and higher")
 
-    if queue.device.platform.name == "Portable Computing Language":
-        # I'm not sure this is universal, but pocl 1.7 seems to use it.
-        if "cl_khr_spirv" not in queue.device.extensions.split():
-            pytest.skip("SPIR-V program creation not supported by device")
+    if not queue.device.il_version:
+        pytest.skip("SPIR-V program creation not supported by device")
 
     n = 50000