Skip to content

Commit 49002cc

Browse files
Made except pattern more specific in the test
1 parent 172394f commit 49002cc

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

dpctl/tests/test_sycl_queue_manager.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@ def test_is_in_device_context_inside_nested_device_ctxt_cpu():
7070
n_half = n // 2
7171
try:
7272
d0, d1 = cpu.create_sub_devices(partition=[n_half, n - n_half])
73-
except Exception:
73+
except dpctl.SyclSubDeviceCreationError:
7474
pytest.skip("Could not create subdevices")
7575
assert 0 == dpctl.get_num_activated_queues()
7676
with dpctl.device_context(d0):

0 commit comments

Comments
 (0)