Skip to content

Commit 5c97b05

Browse files
committed
Remove signbit testing from exp test
1 parent e9829fc commit 5c97b05

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

dpctl/tests/elementwise/test_exp.py

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
import numpy as np
44
import pytest
5-
from numpy.testing import assert_allclose, assert_array_equal
5+
from numpy.testing import assert_allclose
66

77
import dpctl.tensor as dpt
88
from dpctl.tests.helper import get_queue_or_skip, skip_if_dtype_not_supported
@@ -137,14 +137,13 @@ def test_exp_real_special_cases(dtype):
137137
skip_if_dtype_not_supported(dtype, q)
138138

139139
tol = 8 * dpt.finfo(dtype).resolution
140-
x = [np.nan, -np.nan, np.inf, -np.inf, -1.0, 1.0, 0.0, -0.0]
140+
x = [np.nan, np.inf, -np.inf, -1.0, 1.0, 0.0, -0.0]
141141
Xnp = np.array(x, dtype=dtype)
142142
X = dpt.asarray(x, dtype=dtype)
143143

144144
Y = dpt.asnumpy(dpt.exp(X))
145145
Ynp = np.exp(Xnp)
146146
assert_allclose(Y, Ynp, atol=tol, rtol=tol)
147-
assert_array_equal(np.signbit(Y), np.signbit(Ynp))
148147

149148

150149
@pytest.mark.parametrize("dtype", ["f2", "f4", "f8"])

0 commit comments

Comments
 (0)