From bd5c5ce1d4ae128f670d00697ed8283490a3e76a Mon Sep 17 00:00:00 2001 From: Anton Volkov Date: Mon, 30 Nov 2026 13:24:52 +0100 Subject: [PATCH] Rename the shadowed `test_device` in `TestDLPack` `TestDLPack` defined `test_device` twice, so the second definition replaced the first and the check that `__dlpack_device__` reports `kDLOneAPI` for an array, its `from_dlpack` import and a strided view has not run since the second one was added. The first one is now `test_dlpack_device`. --- dpnp/tests/test_dlpack.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dpnp/tests/test_dlpack.py b/dpnp/tests/test_dlpack.py index 32b72452bfa8..be542157c6fd 100644 --- a/dpnp/tests/test_dlpack.py +++ b/dpnp/tests/test_dlpack.py @@ -61,7 +61,7 @@ def test_non_contiguous(self, xp): y5 = xp.diagonal(x).copy() assert_array_equal(y5, xp.from_dlpack(y5)) - def test_device(self): + def test_dlpack_device(self): x = dpnp.arange(5) assert x.__dlpack_device__()[0] == dpnp.DLDeviceType.kDLOneAPI y = dpnp.from_dlpack(x)