Skip to content

Commit 137340e

Browse files
committed
remove unnecessary cbrt test
1 parent defe0c6 commit 137340e

File tree

1 file changed

+1
-17
lines changed

1 file changed

+1
-17
lines changed

dpctl/tests/elementwise/test_cbrt.py

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

3737

3838
@pytest.mark.parametrize("dtype", _real_fp_dtypes)
39-
def test_cbrt_output_contig(dtype):
39+
def test_cbrt_basic(dtype):
4040
q = get_queue_or_skip()
4141
skip_if_dtype_not_supported(dtype, q)
4242

@@ -51,22 +51,6 @@ def test_cbrt_output_contig(dtype):
5151
assert_allclose(dpt.asnumpy(Y), np.cbrt(Xnp), atol=tol, rtol=tol)
5252

5353

54-
@pytest.mark.parametrize("dtype", _real_fp_dtypes)
55-
def test_cbrt_output_strided(dtype):
56-
q = get_queue_or_skip()
57-
skip_if_dtype_not_supported(dtype, q)
58-
59-
n_seq = 2054
60-
61-
X = dpt.linspace(0, 13, num=n_seq, dtype=dtype, sycl_queue=q)[::-2]
62-
Xnp = dpt.asnumpy(X)
63-
64-
Y = dpt.cbrt(X)
65-
tol = 8 * dpt.finfo(Y.dtype).resolution
66-
67-
assert_allclose(dpt.asnumpy(Y), np.cbrt(Xnp), atol=tol, rtol=tol)
68-
69-
7054
@pytest.mark.usefixtures("suppress_invalid_numpy_warnings")
7155
def test_cbrt_special_cases():
7256
get_queue_or_skip()

0 commit comments

Comments
 (0)