From 172394fc7e75625a1d904f374f93e0ad7d3a0c6f Mon Sep 17 00:00:00 2001 From: Oleksandr Pavlyk Date: Wed, 6 Sep 2023 14:53:13 -0500 Subject: [PATCH 1/2] Fixed qualifier name typo --- dpctl/tests/test_sycl_queue_manager.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/dpctl/tests/test_sycl_queue_manager.py b/dpctl/tests/test_sycl_queue_manager.py index c01dca0139..28800334b8 100644 --- a/dpctl/tests/test_sycl_queue_manager.py +++ b/dpctl/tests/test_sycl_queue_manager.py @@ -1,6 +1,6 @@ # Data Parallel Control (dpctl) # -# Copyright 2020-2022 Intel Corporation +# Copyright 2020-2023 Intel Corporation # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -69,7 +69,7 @@ def test_is_in_device_context_inside_nested_device_ctxt_cpu(): n = cpu.max_compute_units n_half = n // 2 try: - d0, d1 = cpu.create_subdevices(partition=[n_half, n - n_half]) + d0, d1 = cpu.create_sub_devices(partition=[n_half, n - n_half]) except Exception: pytest.skip("Could not create subdevices") assert 0 == dpctl.get_num_activated_queues() From 49002cc5927b87db4d86ec49700008b899efb6cd Mon Sep 17 00:00:00 2001 From: Oleksandr Pavlyk Date: Wed, 6 Sep 2023 15:52:27 -0500 Subject: [PATCH 2/2] Made except pattern more specific in the test --- dpctl/tests/test_sycl_queue_manager.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dpctl/tests/test_sycl_queue_manager.py b/dpctl/tests/test_sycl_queue_manager.py index 28800334b8..d640042eb9 100644 --- a/dpctl/tests/test_sycl_queue_manager.py +++ b/dpctl/tests/test_sycl_queue_manager.py @@ -70,7 +70,7 @@ def test_is_in_device_context_inside_nested_device_ctxt_cpu(): n_half = n // 2 try: d0, d1 = cpu.create_sub_devices(partition=[n_half, n - n_half]) - except Exception: + except dpctl.SyclSubDeviceCreationError: pytest.skip("Could not create subdevices") assert 0 == dpctl.get_num_activated_queues() with dpctl.device_context(d0):