Skip to content

Commit d4a79bb

Browse files
committed
remove redundant atan2 tests
also fixes a typo
1 parent d1ee2b0 commit d4a79bb

File tree

1 file changed

+1
-23
lines changed

1 file changed

+1
-23
lines changed

dpctl/tests/elementwise/test_atan2.py

Lines changed: 1 addition & 23 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
from numpy.testing import assert_allclose
@@ -68,26 +66,6 @@ def test_atan2_dtype_matrix(op1_dtype, op2_dtype):
6866
assert_allclose(dpt.asnumpy(r), expected, atol=tol, rtol=tol)
6967

7068

71-
@pytest.mark.parametrize("arr_dt", _no_complex_dtypes[1:])
72-
def test_atan2_python_scalar(arr_dt):
73-
q = get_queue_or_skip()
74-
skip_if_dtype_not_supported(arr_dt, q)
75-
76-
X = dpt.ones((10, 10), dtype=arr_dt, sycl_queue=q)
77-
py_ones = (
78-
bool(1),
79-
int(1),
80-
float(1),
81-
np.float32(1),
82-
ctypes.c_int(1),
83-
)
84-
for sc in py_ones:
85-
R = dpt.atan2(X, sc)
86-
assert isinstance(R, dpt.usm_ndarray)
87-
R = dpt.atan2(sc, X)
88-
assert isinstance(R, dpt.usm_ndarray)
89-
90-
9169
@pytest.mark.parametrize("dt", ["f2", "f4", "f8"])
9270
def test_atan2_special_case_one_nan(dt):
9371
"""If either x1_i or x2_i is NaN, the result is NaN."""
@@ -194,7 +172,7 @@ def test_atan2_special_case_pzero_and_nzero(dt):
194172

195173

196174
@pytest.mark.parametrize("dt", ["f2", "f4", "f8"])
197-
def test_atan2_special_case_pzero_and_negatvie(dt):
175+
def test_atan2_special_case_pzero_and_negative(dt):
198176
"""
199177
If x1_i is +0 and x2_i is less than 0, the result
200178
is an approximation to +pi.

0 commit comments

Comments
 (0)