Skip to content

Commit 0f04213

Browse files
committed
remove redundant tests for reciprocal
1 parent b5cd7c5 commit 0f04213

File tree

1 file changed

+1
-15
lines changed

1 file changed

+1
-15
lines changed

dpctl/tests/elementwise/test_reciprocal.py

Lines changed: 1 addition & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ def test_reciprocal_out_type(dtype):
3636

3737

3838
@pytest.mark.parametrize("dtype", _all_dtypes)
39-
def test_reciprocal_output_contig(dtype):
39+
def test_reciprocal_basic(dtype):
4040
q = get_queue_or_skip()
4141
skip_if_dtype_not_supported(dtype, q)
4242

@@ -49,20 +49,6 @@ def test_reciprocal_output_contig(dtype):
4949
assert dpt.allclose(res, expected, atol=tol, rtol=tol)
5050

5151

52-
@pytest.mark.parametrize("dtype", _all_dtypes)
53-
def test_reciprocal_output_strided(dtype):
54-
q = get_queue_or_skip()
55-
skip_if_dtype_not_supported(dtype, q)
56-
57-
n_seq = 2054
58-
59-
x = dpt.linspace(1, 13, num=n_seq, dtype=dtype, sycl_queue=q)[::-2]
60-
res = dpt.reciprocal(x)
61-
expected = 1 / x
62-
tol = 8 * dpt.finfo(res.dtype).resolution
63-
assert dpt.allclose(res, expected, atol=tol, rtol=tol)
64-
65-
6652
def test_reciprocal_special_cases():
6753
get_queue_or_skip()
6854

0 commit comments

Comments
 (0)