diff --git a/tests/test_sycl_queue.py b/tests/test_sycl_queue.py index 26a71eef293..977f4561f5a 100644 --- a/tests/test_sycl_queue.py +++ b/tests/test_sycl_queue.py @@ -17,7 +17,7 @@ "cpu", ] -available_devices = [d for d in dpctl.get_devices() if not d.has_aspect_host] +available_devices = [d for d in dpctl.get_devices() if not getattr(d, 'has_aspect_host', False)] valid_devices = [] for device in available_devices: