Skip to content

Commit 42cb05b

Browse files
Fix incorrect expected dtype in test_trig_complex_contig
1 parent 6f5a792 commit 42cb05b

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

dpnp/tests/tensor/elementwise/test_trigonometric.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -123,7 +123,7 @@ def test_trig_complex_contig(np_call, dpt_call, dtype):
123123
X = dpt.repeat(dpt.asarray(Xnp, dtype=dtype, sycl_queue=q), n_rep)
124124
Y = dpt_call(X)
125125

126-
expected = np.repeat(np_call(Xnp), n_rep)
126+
expected = np.repeat(np_call(Xnp.astype(dtype)), n_rep)
127127

128128
tol = 50 * dpt.finfo(dtype).resolution
129129
assert_allclose(dpt.asnumpy(Y), expected, atol=tol, rtol=tol)

0 commit comments

Comments
 (0)