Skip to content

Commit 878640b

Browse files
committed
remove redundant tests using out keyword
1 parent a6a1c48 commit 878640b

File tree

2 files changed

+0
-28
lines changed

2 files changed

+0
-28
lines changed

dpctl/tests/elementwise/test_hyperbolic.py

Lines changed: 0 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,6 @@
1616

1717
import itertools
1818
import os
19-
import re
2019

2120
import numpy as np
2221
import pytest
@@ -144,19 +143,6 @@ def test_hyper_order(np_call, dpt_call, dtype):
144143
assert_allclose(dpt.asnumpy(Y), expected_Y, atol=tol, rtol=tol)
145144

146145

147-
@pytest.mark.parametrize("callable", _dpt_funcs)
148-
@pytest.mark.parametrize("dtype", _all_dtypes)
149-
def test_hyper_error_dtype(callable, dtype):
150-
q = get_queue_or_skip()
151-
skip_if_dtype_not_supported(dtype, q)
152-
153-
x = dpt.ones(5, dtype=dtype)
154-
y = dpt.empty_like(x, dtype="int16")
155-
with pytest.raises(ValueError) as excinfo:
156-
callable(x, out=y)
157-
assert re.match("Output array of type.*is needed", str(excinfo.value))
158-
159-
160146
@pytest.mark.parametrize("np_call, dpt_call", _all_funcs)
161147
@pytest.mark.parametrize("dtype", ["f2", "f4", "f8"])
162148
def test_hyper_real_strided(np_call, dpt_call, dtype):

dpctl/tests/elementwise/test_trigonometric.py

Lines changed: 0 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,6 @@
1616

1717
import itertools
1818
import os
19-
import re
2019

2120
import numpy as np
2221
import pytest
@@ -151,19 +150,6 @@ def test_trig_order(np_call, dpt_call, dtype):
151150
assert_allclose(dpt.asnumpy(Y), expected_Y, atol=tol, rtol=tol)
152151

153152

154-
@pytest.mark.parametrize("callable", _dpt_funcs)
155-
@pytest.mark.parametrize("dtype", _all_dtypes)
156-
def test_trig_error_dtype(callable, dtype):
157-
q = get_queue_or_skip()
158-
skip_if_dtype_not_supported(dtype, q)
159-
160-
x = dpt.zeros(5, dtype=dtype)
161-
y = dpt.empty_like(x, dtype="int16")
162-
with pytest.raises(ValueError) as excinfo:
163-
callable(x, out=y)
164-
assert re.match("Output array of type.*is needed", str(excinfo.value))
165-
166-
167153
@pytest.mark.parametrize("np_call, dpt_call", _all_funcs)
168154
@pytest.mark.parametrize("dtype", ["f2", "f4", "f8"])
169155
def test_trig_real_strided(np_call, dpt_call, dtype):

0 commit comments

Comments
 (0)