Skip to content

Commit 315b9aa

Browse files
Added test that X.shape is same as __sycl_usm_array_interface__['shape']
1 parent 5ffcf86 commit 315b9aa

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

dpctl/tests/test_usm_ndarray_ctor.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -55,6 +55,7 @@ def test_allocate_usm_ndarray(shape, usm_type):
5555
assert X.sycl_device == q.sycl_device
5656
assert X.size == Xnp.size
5757
assert X.shape == Xnp.shape
58+
assert X.shape == X.__sycl_usm_array_interface__["shape"]
5859

5960

6061
@pytest.mark.parametrize(

0 commit comments

Comments
 (0)