Skip to content

Commit 1b8b30b

Browse files
authored
Update test_usm_ndarray_ctor.py
1 parent f184e3c commit 1b8b30b

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

dpctl/tests/test_usm_ndarray_ctor.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2781,3 +2781,7 @@ def test_asarray_property(dt):
27812781
# test __array__ attribute
27822782
x_cvt = np.asarray(x)
27832783
np.testing.assert_array_equal(x_np, x_cvt)
2784+
2785+
# test that copy=False is not supported
2786+
with pytest.raises(TypeError):
2787+
np.asarray(x, copy=False)

0 commit comments

Comments
 (0)