From 9ad6fda1f2ec3959b2fcd7e8a2819055a76d77c2 Mon Sep 17 00:00:00 2001 From: Sergey Pokhodenko Date: Fri, 3 Dec 2021 11:57:27 +0300 Subject: [PATCH 1/2] Fix tests for nested context factories expecting for integration environment (#705) --- dpctl/tests/test_sycl_queue_manager.py | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/dpctl/tests/test_sycl_queue_manager.py b/dpctl/tests/test_sycl_queue_manager.py index ae7c75cbbd..0073f7fcd7 100644 --- a/dpctl/tests/test_sycl_queue_manager.py +++ b/dpctl/tests/test_sycl_queue_manager.py @@ -160,9 +160,8 @@ def test_get_current_backend(): dpctl.set_global_queue("cpu") -def test_nested_context_factory_is_empty_list(): +def test_nested_context_factory_is_list(): assert isinstance(dpctl.nested_context_factories, list) - assert not dpctl.nested_context_factories @contextlib.contextmanager @@ -182,7 +181,7 @@ def factory(): assert factory in dpctl.nested_context_factories assert isinstance(dpctl.nested_context_factories, list) - assert not dpctl.nested_context_factories + assert factory not in dpctl.nested_context_factories @pytest.mark.skipif(not has_cpu(), reason="No OpenCL CPU queues available") From 47a2684f8380f2e4feacbc1051b936dc0720d37e Mon Sep 17 00:00:00 2001 From: Sergey Pokhodenko Date: Fri, 3 Dec 2021 12:00:33 +0300 Subject: [PATCH 2/2] Update CHANGELOG.md --- CHANGELOG.md | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index e0a3ea002c..fb7a085d55 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -6,10 +6,14 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 ## [Unreleased] -## [0.11.3] - 11/30/2021 +## [0.11.4] - 12/03/2021 ### Fixed +* Fix tests for nested context factories expecting for integration environment by @PokhodenkoSA in https://github.com/IntelPython/dpctl/pull/705 + +## [0.11.3] - 11/30/2021 +### Fixed * Set the last byte in allocated char array to zero [cherry picked from #650] (#699) ## [0.11.2] - 11/29/2021