Skip to content

Commit e17943a

Browse files
committed
remove redundant tests for nextafter
1 parent 9f6c64d commit e17943a

File tree

1 file changed

+0
-22
lines changed

1 file changed

+0
-22
lines changed

dpctl/tests/elementwise/test_nextafter.py

Lines changed: 0 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -14,8 +14,6 @@
1414
# See the License for the specific language governing permissions and
1515
# limitations under the License.
1616

17-
import ctypes
18-
1917
import numpy as np
2018
import pytest
2119

@@ -60,26 +58,6 @@ def test_nextafter_dtype_matrix(op1_dtype, op2_dtype):
6058
assert (dpt.asnumpy(r) == expected.astype(r.dtype)).all()
6159

6260

63-
@pytest.mark.parametrize("arr_dt", _no_complex_dtypes[1:])
64-
def test_nextafter_python_scalar(arr_dt):
65-
q = get_queue_or_skip()
66-
skip_if_dtype_not_supported(arr_dt, q)
67-
68-
X = dpt.ones((10, 10), dtype=arr_dt, sycl_queue=q)
69-
py_ones = (
70-
bool(1),
71-
int(1),
72-
float(1),
73-
np.float32(1),
74-
ctypes.c_int(1),
75-
)
76-
for sc in py_ones:
77-
R = dpt.nextafter(X, sc)
78-
assert isinstance(R, dpt.usm_ndarray)
79-
R = dpt.nextafter(sc, X)
80-
assert isinstance(R, dpt.usm_ndarray)
81-
82-
8361
@pytest.mark.parametrize("dt", ["f2", "f4", "f8"])
8462
def test_nextafter_special_cases_nan(dt):
8563
"""If either x1_i or x2_i is NaN, the result is NaN."""

0 commit comments

Comments
 (0)