Skip to content

Commit 52b8052

Browse files
committed
Update linspace tests
1 parent b2e3634 commit 52b8052

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

dpnp/tests/test_arraycreation.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@
1717
from .helper import (
1818
assert_dtype_allclose,
1919
get_all_dtypes,
20+
get_array,
2021
)
2122
from .third_party.cupy import testing
2223

@@ -768,7 +769,7 @@ def test_space_numpy_dtype(func, start_dtype, stop_dtype):
768769
],
769770
)
770771
def test_linspace_arrays(start, stop):
771-
func = lambda xp: xp.linspace(start, stop, 10)
772+
func = lambda xp: xp.linspace(get_array(xp, start), get_array(xp, stop), 10)
772773
assert func(numpy).shape == func(dpnp).shape
773774

774775

0 commit comments

Comments
 (0)