From 108d2a42df7156759483823070a172fbce4a522e Mon Sep 17 00:00:00 2001 From: Anton Volkov Date: Thu, 10 Apr 2025 18:01:16 +0200 Subject: [PATCH 1/2] Cast test env variable to bool value --- dpnp/tests/config.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/dpnp/tests/config.py b/dpnp/tests/config.py index 0069efe23ee7..8f7555a4ef62 100644 --- a/dpnp/tests/config.py +++ b/dpnp/tests/config.py @@ -1,6 +1,6 @@ import os -all_int_types = int(os.getenv("DPNP_TEST_ALL_INT_TYPES", 0)) -float16_types = int(os.getenv("DPNP_TEST_FLOAT_16", 0)) -complex_types = int(os.getenv("DPNP_TEST_COMPLEX_TYPES", 0)) -bool_types = int(os.getenv("DPNP_TEST_BOOL_TYPES", 0)) +all_int_types = bool(os.getenv("DPNP_TEST_ALL_INT_TYPES", 0)) +float16_types = bool(os.getenv("DPNP_TEST_FLOAT_16", 0)) +complex_types = bool(os.getenv("DPNP_TEST_COMPLEX_TYPES", 0)) +bool_types = bool(os.getenv("DPNP_TEST_BOOL_TYPES", 0)) From 15bd9d2b85a08291d51c1d87a300979da419d59d Mon Sep 17 00:00:00 2001 From: Anton Volkov Date: Thu, 10 Apr 2025 18:05:48 +0200 Subject: [PATCH 2/2] Add an entry to changelog --- CHANGELOG.md | 1 + 1 file changed, 1 insertion(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index 3d7cca1de54f..a4a56d871583 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -28,6 +28,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 * Resolved an issue with an incorrect result returned due to missing dependency from the strided kernel on a copy event in `dpnp.erf` [#2378](https://github.com/IntelPython/dpnp/pull/2378) * Updated `conda create` commands build and install instructions of `Quick start guide` to avoid a compilation error [#2395](https://github.com/IntelPython/dpnp/pull/2395) +* Added handling of empty string passed to a test env variable defining data type scope as a `False` value [#2415](https://github.com/IntelPython/dpnp/pull/2415) ## [0.17.0] - 02/26/2025