diff --git a/CHANGELOG.md b/CHANGELOG.md index c78dfe605f90..5d77b3bdb538 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -13,7 +13,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 ### Fixed -## [0.18.0] - 05/DD/2025 +## [0.18.0] - 06/DD/2025 This release achieves 100% compliance with Python Array API specification (revision [2024.12](https://data-apis.org/array-api/2024.12/)). The release provides enhanced compatibility with NumPy 2.2.5. Window and mathematical routines are complemented by a set of new functions. @@ -61,6 +61,7 @@ Moreover, it adds support to build `dpnp` from the source for AMD GPUs. * 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) * Resolved build issues on non-Intel targets in `dpnp.i0` and `dpnp.kaiser` [#2439](https://github.com/IntelPython/dpnp/pull/2439) * Ensure consistency in the `dpnp.linalg.LinAlgError` exception raised on singular input matrices for both non-batched and batched cases in `dpnp.linalg.inv` [#2458] (https://github.com/IntelPython/dpnp/pull/2458) +* Updated test f/w to correct a check of array interface while converting to `numpy.ndarray` for comparison [#2467] (https://github.com/IntelPython/dpnp/pull/2467) ## [0.17.0] - 02/26/2025 diff --git a/dpnp/dpnp_utils/dpnp_algo_utils.pyx b/dpnp/dpnp_utils/dpnp_algo_utils.pyx index cc8acf068443..732b792af125 100644 --- a/dpnp/dpnp_utils/dpnp_algo_utils.pyx +++ b/dpnp/dpnp_utils/dpnp_algo_utils.pyx @@ -76,9 +76,9 @@ cdef ERROR_PREFIX = "DPNP error:" def convert_item(item): - if getattr(item, "__sycl_usm_array_interface__", False): + if hasattr(item, "__sycl_usm_array_interface__"): item_converted = dpnp.asnumpy(item) - elif getattr(item, "__array_interface__", False): # detect if it is a container (TODO any better way?) + elif hasattr(item, "__array_interface__"): # detect if it is a container (TODO any better way?) mod_name = getattr(item, "__module__", 'none') if (mod_name != 'numpy'): item_converted = dpnp.asnumpy(item)