Skip to content

Commit 4a6e4d7

Browse files
committed
Update more impacted tests
1 parent fcfb6e7 commit 4a6e4d7

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

dpnp/tests/test_mathematical.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2612,8 +2612,8 @@ def test_invalid_shape(self, shape):
26122612
@pytest.mark.parametrize("xp", [dpnp, numpy])
26132613
@pytest.mark.parametrize(
26142614
"out",
2615-
[4, (), [], (3, 7), [2, 4]],
2616-
ids=["scalar", "empty_tuple", "empty_list", "tuple", "list"],
2615+
[4, [], range(2), [2, 4]],
2616+
ids=["scalar", "empty_list", "range", "list"],
26172617
)
26182618
def test_invalid_out(self, xp, out):
26192619
a = xp.arange(10)

dpnp/tests/test_umath.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -524,8 +524,8 @@ def test_invalid_shape(self, func_params, shape):
524524

525525
@pytest.mark.parametrize(
526526
"out",
527-
[4, (), [], (3, 7), [2, 4]],
528-
ids=["4", "()", "[]", "(3, 7)", "[2, 4]"],
527+
[4, [], range(2), [2, 4]],
528+
ids=["scalar", "empty_list", "range", "list"],
529529
)
530530
def test_invalid_out(self, func_params, out):
531531
func = func_params["func"]
@@ -625,8 +625,8 @@ def test_invalid_shape(self, xp, func_params, shape):
625625
@pytest.mark.parametrize("xp", [dpnp, numpy])
626626
@pytest.mark.parametrize(
627627
"out",
628-
[4, (), [], (3, 7), [2, 4]],
629-
ids=["scalar", "empty_tuple", "empty_list", "tuple", "list"],
628+
[4, [], range(2), [2, 4]],
629+
ids=["scalar", "empty_list", "range", "list"],
630630
)
631631
def test_invalid_out(self, func_params, xp, out):
632632
func = func_params["func"]

0 commit comments

Comments
 (0)