Skip to content

Commit 74c40be

Browse files
committed
Update legacy tests from modf
1 parent b04e830 commit 74c40be

File tree

4 files changed

+2
-21
lines changed

4 files changed

+2
-21
lines changed

dpnp/tests/skipped_tests_cuda.tbl

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,5 @@
11
# NotImplementedError
22

3-
# modf
4-
tests/test_arithmetic.py::TestArithmetic::test_modf_part1
5-
tests/test_arithmetic.py::TestArithmetic::test_modf_part2
6-
tests/test_sycl_queue.py::test_modf[cuda:gpu:0]
7-
tests/third_party/cupy/math_tests/test_arithmetic.py::TestArithmeticModf::test_modf
8-
93
# random
104
tests/test_random_state.py::TestNormal::test_distr[host-float32]
115
tests/test_random_state.py::TestNormal::test_distr[host-float64]

dpnp/tests/test_sycl_queue.py

Lines changed: 1 addition & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -360,6 +360,7 @@ def test_1in_1out(func, data, device):
360360
"func, data",
361361
[
362362
pytest.param("frexp", numpy.arange(9)),
363+
pytest.param("modf", [0, 3.5]),
363364
],
364365
)
365366
@pytest.mark.parametrize("device", valid_dev, ids=dev_ids)
@@ -850,16 +851,6 @@ def test_random_state(func, args, kwargs, device, usm_type):
850851
assert_sycl_queue_equal(res_array.sycl_queue, sycl_queue)
851852

852853

853-
@pytest.mark.parametrize("device", valid_dev, ids=dev_ids)
854-
def test_modf(device):
855-
x = dpnp.array([0, 3.5], device=device)
856-
result1, result2 = dpnp.modf(x)
857-
858-
expected_queue = x.sycl_queue
859-
assert_sycl_queue_equal(result1.sycl_queue, expected_queue)
860-
assert_sycl_queue_equal(result2.sycl_queue, expected_queue)
861-
862-
863854
@pytest.mark.parametrize("device", valid_dev, ids=dev_ids)
864855
def test_einsum(device):
865856
array_list = []

dpnp/tests/test_umath.py

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -117,11 +117,6 @@ def test_umaths(test_cases):
117117
pytest.skip("dpctl-2031")
118118
elif umath in ["divmod"]:
119119
pytest.skip("Not implemented umath")
120-
elif umath == "modf":
121-
if args[0].dtype == dpnp.float16:
122-
pytest.skip("dpnp.modf is not supported with dpnp.float16")
123-
elif is_cuda_device():
124-
pytest.skip("dpnp.modf is not supported on CUDA device")
125120
elif umath in ["vecmat", "matvec"]:
126121
if is_win_platform() and not is_gpu_device():
127122
pytest.skip("SAT-8073")

dpnp/tests/test_usm_type.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -653,6 +653,7 @@ def test_1in_1out(func, data, usm_type):
653653
"func, data",
654654
[
655655
pytest.param("frexp", numpy.arange(9)),
656+
pytest.param("modf", [0, 3.5]),
656657
],
657658
)
658659
@pytest.mark.parametrize("usm_type", list_of_usm_types)

0 commit comments

Comments
 (0)