Skip to content

Commit 28c5de4

Browse files
committed
Add special handling for case when no fp64 support
1 parent dd8b737 commit 28c5de4

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

dpnp/tests/test_ndarray.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -92,8 +92,10 @@ def test_python_types(self, dt):
9292
a = numpy.ones((8, 4), dtype=numpy.complex64)
9393
ia = dpnp.array(a)
9494

95-
expected = a.view(dt)
9695
result = ia.view(dt)
96+
if not has_support_aspect64() and dt in [float, complex]:
97+
dt = result.dtype
98+
expected = a.view(dt)
9799
assert_allclose(result, expected)
98100

99101
def test_type_error(self):

0 commit comments

Comments
 (0)