Skip to content

Commit 68f2874

Browse files
committed
remove redundant copysign tests
1 parent c40d116 commit 68f2874

File tree

1 file changed

+0
-22
lines changed

1 file changed

+0
-22
lines changed

dpctl/tests/elementwise/test_copysign.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

@@ -59,26 +57,6 @@ def test_copysign_dtype_matrix(op1_dtype, op2_dtype):
5957
assert (dpt.asnumpy(r) == expected.astype(r.dtype)).all()
6058

6159

62-
@pytest.mark.parametrize("arr_dt", _real_fp_dtypes)
63-
def test_copysign_python_scalar(arr_dt):
64-
q = get_queue_or_skip()
65-
skip_if_dtype_not_supported(arr_dt, q)
66-
67-
X = dpt.ones((10, 10), dtype=arr_dt, sycl_queue=q)
68-
py_ones = (
69-
bool(1),
70-
int(1),
71-
float(1),
72-
np.float32(1),
73-
ctypes.c_int(1),
74-
)
75-
for sc in py_ones:
76-
R = dpt.copysign(X, sc)
77-
assert isinstance(R, dpt.usm_ndarray)
78-
R = dpt.copysign(sc, X)
79-
assert isinstance(R, dpt.usm_ndarray)
80-
81-
8260
@pytest.mark.parametrize("dt", _real_fp_dtypes)
8361
def test_copysign(dt):
8462
q = get_queue_or_skip()

0 commit comments

Comments
 (0)