Skip to content

Commit 85816aa

Browse files
author
Vahid Tavanashad
committed
remove test_indices
1 parent 1dfe86c commit 85816aa

File tree

2 files changed

+9
-59
lines changed

2 files changed

+9
-59
lines changed

dpnp/tests/test_sycl_queue.py

Lines changed: 5 additions & 32 deletions
Original file line numberDiff line numberDiff line change
@@ -977,29 +977,12 @@ def test_det(device):
977977

978978
@pytest.mark.parametrize(
979979
"func",
980-
[
981-
"eig",
982-
"eigvals",
983-
"eigh",
984-
"eigvalsh",
985-
],
980+
["eig", "eigvals", "eigh", "eigvalsh"],
986981
)
987982
@pytest.mark.parametrize(
988983
"shape",
989-
[
990-
(4, 4),
991-
(0, 0),
992-
(2, 3, 3),
993-
(0, 2, 2),
994-
(1, 0, 0),
995-
],
996-
ids=[
997-
"(4, 4)",
998-
"(0, 0)",
999-
"(2, 3, 3)",
1000-
"(0, 2, 2)",
1001-
"(1, 0, 0)",
1002-
],
984+
[(4, 4), (0, 0), (2, 3, 3), (0, 2, 2), (1, 0, 0)],
985+
ids=["(4, 4)", "(0, 0)", "(2, 3, 3)", "(0, 2, 2)", "(1, 0, 0)"],
1003986
)
1004987
@pytest.mark.parametrize("device", valid_dev, ids=dev_ids)
1005988
def test_eigenvalue(func, shape, device):
@@ -1023,18 +1006,8 @@ def test_eigenvalue(func, shape, device):
10231006

10241007
@pytest.mark.parametrize(
10251008
"shape, is_empty",
1026-
[
1027-
((2, 2), False),
1028-
((3, 2, 2), False),
1029-
((0, 0), True),
1030-
((0, 2, 2), True),
1031-
],
1032-
ids=[
1033-
"(2, 2)",
1034-
"(3, 2, 2)",
1035-
"(0, 0)",
1036-
"(0, 2, 2)",
1037-
],
1009+
[((2, 2), False), ((3, 2, 2), False), ((0, 0), True), ((0, 2, 2), True)],
1010+
ids=["(2, 2)", "(3, 2, 2)", "(0, 0)", "(0, 2, 2)"],
10381011
)
10391012
@pytest.mark.parametrize("device", valid_dev, ids=dev_ids)
10401013
def test_inv(shape, is_empty, device):

dpnp/tests/test_usm_type.py

Lines changed: 4 additions & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -996,12 +996,6 @@ def test_cholesky(data, is_empty, usm_type):
996996
assert x.usm_type == result.usm_type
997997

998998

999-
@pytest.mark.parametrize("usm_type", list_of_usm_types)
1000-
def test_indices(usm_type):
1001-
x = dpnp.indices((2,), usm_type=usm_type)
1002-
assert x.usm_type == usm_type
1003-
1004-
1005999
@pytest.mark.parametrize("usm_type", list_of_usm_types + [None])
10061000
@pytest.mark.parametrize("func", ["mgrid", "ogrid"])
10071001
def test_grid(usm_type, func):
@@ -1015,7 +1009,7 @@ def test_grid(usm_type, func):
10151009

10161010
@pytest.mark.parametrize("usm_type", list_of_usm_types)
10171011
@pytest.mark.parametrize("sparse", [True, False])
1018-
def test_indices_sparse(usm_type, sparse):
1012+
def test_indices(usm_type, sparse):
10191013
x = dpnp.indices((2, 3), sparse=sparse, usm_type=usm_type)
10201014
for i in x:
10211015
assert i.usm_type == usm_type
@@ -1045,29 +1039,12 @@ def test_where(usm_type):
10451039

10461040
@pytest.mark.parametrize(
10471041
"func",
1048-
[
1049-
"eig",
1050-
"eigvals",
1051-
"eigh",
1052-
"eigvalsh",
1053-
],
1042+
["eig", "eigvals", "eigh", "eigvalsh"],
10541043
)
10551044
@pytest.mark.parametrize(
10561045
"shape",
1057-
[
1058-
(4, 4),
1059-
(0, 0),
1060-
(2, 3, 3),
1061-
(0, 2, 2),
1062-
(1, 0, 0),
1063-
],
1064-
ids=[
1065-
"(4, 4)",
1066-
"(0, 0)",
1067-
"(2, 3, 3)",
1068-
"(0, 2, 2)",
1069-
"(1, 0, 0)",
1070-
],
1046+
[(4, 4), (0, 0), (2, 3, 3), (0, 2, 2), (1, 0, 0)],
1047+
ids=["(4, 4)", "(0, 0)", "(2, 3, 3)", "(0, 2, 2)", "(1, 0, 0)"],
10711048
)
10721049
@pytest.mark.parametrize("usm_type", list_of_usm_types)
10731050
def test_eigenvalue(func, shape, usm_type):

0 commit comments

Comments
 (0)