Skip to content

Commit c36b749

Browse files
committed
remove redundant tests using out keyword
1 parent adab4ab commit c36b749

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
@@ -140,19 +139,6 @@ def test_hyper_order(np_call, dpt_call, dtype):
140139
assert_allclose(dpt.asnumpy(Y), expected_Y, atol=tol, rtol=tol)
141140

142141

143-
@pytest.mark.parametrize("callable", _dpt_funcs)
144-
@pytest.mark.parametrize("dtype", _all_dtypes)
145-
def test_hyper_error_dtype(callable, dtype):
146-
q = get_queue_or_skip()
147-
skip_if_dtype_not_supported(dtype, q)
148-
149-
x = dpt.ones(5, dtype=dtype)
150-
y = dpt.empty_like(x, dtype="int16")
151-
with pytest.raises(ValueError) as excinfo:
152-
callable(x, out=y)
153-
assert re.match("Output array of type.*is needed", str(excinfo.value))
154-
155-
156142
@pytest.mark.parametrize("np_call, dpt_call", _all_funcs)
157143
@pytest.mark.parametrize("dtype", ["f2", "f4", "f8"])
158144
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
@@ -149,19 +148,6 @@ def test_trig_order(np_call, dpt_call, dtype):
149148
assert_allclose(dpt.asnumpy(Y), expected_Y, atol=tol, rtol=tol)
150149

151150

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

0 commit comments

Comments
 (0)