Skip to content

Commit a06936d

Browse files
Fix incorrect expected dtype in test_hyper_complex_contig
1 parent e2e633e commit a06936d

1 file changed

Lines changed: 3 additions & 6 deletions

File tree

dpnp/tests/tensor/elementwise/test_hyperbolic.py

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -113,17 +113,14 @@ def test_hyper_complex_contig(np_call, dpt_call, dtype):
113113
X = dpt.asarray(np.repeat(Xnp, n_rep), dtype=dtype, sycl_queue=q)
114114
Y = dpt_call(X)
115115

116+
expected = np.repeat(np_call(Xnp), n_rep).astype(dtype)
116117
tol = 50 * dpt.finfo(dtype).resolution
117-
assert_allclose(
118-
dpt.asnumpy(Y), np.repeat(np_call(Xnp), n_rep), atol=tol, rtol=tol
119-
)
118+
assert_allclose(dpt.asnumpy(Y), expected, atol=tol, rtol=tol)
120119

121120
Z = dpt.empty_like(X, dtype=dtype)
122121
dpt_call(X, out=Z)
123122

124-
assert_allclose(
125-
dpt.asnumpy(Z), np.repeat(np_call(Xnp), n_rep), atol=tol, rtol=tol
126-
)
123+
assert_allclose(dpt.asnumpy(Z), expected, atol=tol, rtol=tol)
127124

128125

129126
@pytest.mark.parametrize("np_call, dpt_call", _all_funcs)

0 commit comments

Comments
 (0)