We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent dd8b737 commit 28c5de4Copy full SHA for 28c5de4
dpnp/tests/test_ndarray.py
@@ -92,8 +92,10 @@ def test_python_types(self, dt):
92
a = numpy.ones((8, 4), dtype=numpy.complex64)
93
ia = dpnp.array(a)
94
95
- expected = a.view(dt)
96
result = ia.view(dt)
+ if not has_support_aspect64() and dt in [float, complex]:
97
+ dt = result.dtype
98
+ expected = a.view(dt)
99
assert_allclose(result, expected)
100
101
def test_type_error(self):
0 commit comments