From a9b6411f437669cf0d59639d6acb1a53479d8549 Mon Sep 17 00:00:00 2001 From: Anton Volkov Date: Fri, 10 Oct 2025 16:30:29 +0200 Subject: [PATCH 1/2] Fix typo in SyclContextCreationError and SyclContextCreationError exceptions text --- dpctl/_sycl_context.pyx | 2 +- dpctl/_sycl_device.pyx | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/dpctl/_sycl_context.pyx b/dpctl/_sycl_context.pyx index aefa6d301f..1cc1a5ac3b 100644 --- a/dpctl/_sycl_context.pyx +++ b/dpctl/_sycl_context.pyx @@ -59,7 +59,7 @@ _logger = logging.getLogger(__name__) cdef class SyclContextCreationError(Exception): """ A ``SyclContextCreationError`` exception is raised - when :class:`.SyclContext` could not created. + when :class:`.SyclContext` could not be created. """ pass diff --git a/dpctl/_sycl_device.pyx b/dpctl/_sycl_device.pyx index 96efc310c3..419ed2b9fb 100644 --- a/dpctl/_sycl_device.pyx +++ b/dpctl/_sycl_device.pyx @@ -128,7 +128,7 @@ __all__ = [ cdef class SyclDeviceCreationError(Exception): """ A ``SyclDeviceCreationError`` exception is raised when - :class:`.SyclDevice` instance could not created. + :class:`.SyclDevice` instance could not be created. """ pass From 516acaa162afffbcf5d0a58d0d92c61521333e1e Mon Sep 17 00:00:00 2001 From: Anton Volkov Date: Fri, 10 Oct 2025 16:31:24 +0200 Subject: [PATCH 2/2] Fix similar typo in example and test --- dpctl/tests/test_utils.py | 2 +- examples/cython/usm_memory/scripts/bench.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/dpctl/tests/test_utils.py b/dpctl/tests/test_utils.py index fac9f41a7b..197e17b81a 100644 --- a/dpctl/tests/test_utils.py +++ b/dpctl/tests/test_utils.py @@ -161,7 +161,7 @@ def test_order_manager(): try: q = dpctl.SyclQueue() except dpctl.SyclQueueCreationError: - pytest.skip("Queue could not created for default-selected device") + pytest.skip("Queue could not be created for default-selected device") _som = dpctl.utils.SequentialOrderManager _mngr = _som[q] assert isinstance(_mngr.num_host_task_events, int) diff --git a/examples/cython/usm_memory/scripts/bench.py b/examples/cython/usm_memory/scripts/bench.py index 7a234c83cb..100c11be4b 100644 --- a/examples/cython/usm_memory/scripts/bench.py +++ b/examples/cython/usm_memory/scripts/bench.py @@ -46,7 +46,7 @@ def gen_option_params( continue if not queues: - print("No queues could not created, nothing to do.") + print("No queues could be created, nothing to do.") exit(0) opt_params_list = []