Skip to content

Commit b5fc64a

Browse files
committed
remove unnecessary ids
1 parent 1dafb3b commit b5fc64a

File tree

2 files changed

+13
-43
lines changed

2 files changed

+13
-43
lines changed

dpnp/tests/test_sycl_queue.py

Lines changed: 6 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -580,9 +580,7 @@ def test_1in_1out(func, data, device):
580580
assert_sycl_queue_equal(result_queue, expected_queue)
581581

582582

583-
@pytest.mark.parametrize(
584-
"op", ["bitwise_count", "bitwise_not"], ids=["bitwise_count", "bitwise_not"]
585-
)
583+
@pytest.mark.parametrize("op", ["bitwise_count", "bitwise_not"])
586584
@pytest.mark.parametrize(
587585
"device",
588586
valid_devices,
@@ -598,13 +596,6 @@ def test_bitwise_op_1in(op, device):
598596
@pytest.mark.parametrize(
599597
"op",
600598
["bitwise_and", "bitwise_or", "bitwise_xor", "left_shift", "right_shift"],
601-
ids=[
602-
"bitwise_and",
603-
"bitwise_or",
604-
"bitwise_xor",
605-
"left_shift",
606-
"right_shift",
607-
],
608599
)
609600
@pytest.mark.parametrize(
610601
"device",
@@ -1909,11 +1900,7 @@ def test_norm(device, ord, axis):
19091900
"(1, 0, 3)",
19101901
],
19111902
)
1912-
@pytest.mark.parametrize(
1913-
"mode",
1914-
["r", "raw", "complete", "reduced"],
1915-
ids=["r", "raw", "complete", "reduced"],
1916-
)
1903+
@pytest.mark.parametrize("mode", ["r", "raw", "complete", "reduced"])
19171904
@pytest.mark.parametrize(
19181905
"device",
19191906
valid_devices,
@@ -1945,8 +1932,8 @@ def test_qr(shape, mode, device):
19451932
valid_devices,
19461933
ids=[device.filter_string for device in valid_devices],
19471934
)
1948-
@pytest.mark.parametrize("full_matrices", [True, False], ids=["True", "False"])
1949-
@pytest.mark.parametrize("compute_uv", [True, False], ids=["True", "False"])
1935+
@pytest.mark.parametrize("full_matrices", [True, False])
1936+
@pytest.mark.parametrize("compute_uv", [True, False])
19501937
@pytest.mark.parametrize(
19511938
"shape",
19521939
[
@@ -2454,7 +2441,7 @@ def test_take_along_axis(data, ind, axis, device):
24542441
valid_devices,
24552442
ids=[device.filter_string for device in valid_devices],
24562443
)
2457-
@pytest.mark.parametrize("sparse", [True, False], ids=["True", "False"])
2444+
@pytest.mark.parametrize("sparse", [True, False])
24582445
def test_indices(device, sparse):
24592446
sycl_queue = dpctl.SyclQueue(device)
24602447
grid = dpnp.indices((2, 3), sparse=sparse, sycl_queue=sycl_queue)
@@ -2946,7 +2933,7 @@ def test_unique(axis, device):
29462933
assert_sycl_queue_equal(iv_queue, ia.sycl_queue)
29472934

29482935

2949-
@pytest.mark.parametrize("copy", [True, False], ids=["True", "False"])
2936+
@pytest.mark.parametrize("copy", [True, False])
29502937
@pytest.mark.parametrize(
29512938
"device",
29522939
valid_devices,

dpnp/tests/test_usm_type.py

Lines changed: 7 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -372,7 +372,7 @@ def test_linspace_arrays(usm_type_start, usm_type_stop):
372372
)
373373

374374

375-
@pytest.mark.parametrize("func", ["tril", "triu"], ids=["tril", "triu"])
375+
@pytest.mark.parametrize("func", ["tril", "triu"])
376376
@pytest.mark.parametrize("usm_type", list_of_usm_types, ids=list_of_usm_types)
377377
def test_tril_triu(func, usm_type):
378378
x0 = dp.ones((3, 3), usm_type=usm_type)
@@ -433,9 +433,7 @@ def test_logic_op_2in(op, usm_type_x, usm_type_y):
433433
assert z.usm_type == du.get_coerced_usm_type([usm_type_x, usm_type_y])
434434

435435

436-
@pytest.mark.parametrize(
437-
"op", ["bitwise_count", "bitwise_not"], ids=["bitwise_count", "bitwise_not"]
438-
)
436+
@pytest.mark.parametrize("op", ["bitwise_count", "bitwise_not"])
439437
@pytest.mark.parametrize("usm_type_x", list_of_usm_types, ids=list_of_usm_types)
440438
def test_bitwise_op_1in(op, usm_type_x):
441439
x = dp.arange(-10, 10, usm_type=usm_type_x)
@@ -447,13 +445,6 @@ def test_bitwise_op_1in(op, usm_type_x):
447445
@pytest.mark.parametrize(
448446
"op",
449447
["bitwise_and", "bitwise_or", "bitwise_xor", "left_shift", "right_shift"],
450-
ids=[
451-
"bitwise_and",
452-
"bitwise_or",
453-
"bitwise_xor",
454-
"left_shift",
455-
"right_shift",
456-
],
457448
)
458449
@pytest.mark.parametrize("usm_type_x", list_of_usm_types, ids=list_of_usm_types)
459450
@pytest.mark.parametrize("usm_type_y", list_of_usm_types, ids=list_of_usm_types)
@@ -1153,7 +1144,7 @@ def test_grid(usm_type, func):
11531144

11541145

11551146
@pytest.mark.parametrize("usm_type", list_of_usm_types, ids=list_of_usm_types)
1156-
@pytest.mark.parametrize("sparse", [True, False], ids=["True", "False"])
1147+
@pytest.mark.parametrize("sparse", [True, False])
11571148
def test_indices_sparse(usm_type, sparse):
11581149
x = dp.indices((2, 3), sparse=sparse, usm_type=usm_type)
11591150
for i in x:
@@ -1469,12 +1460,8 @@ def test_inv(shape, is_empty, usm_type):
14691460

14701461

14711462
@pytest.mark.parametrize("usm_type", list_of_usm_types, ids=list_of_usm_types)
1472-
@pytest.mark.parametrize(
1473-
"full_matrices_param", [True, False], ids=["True", "False"]
1474-
)
1475-
@pytest.mark.parametrize(
1476-
"compute_uv_param", [True, False], ids=["True", "False"]
1477-
)
1463+
@pytest.mark.parametrize("full_matrices_param", [True, False])
1464+
@pytest.mark.parametrize("compute_uv_param", [True, False])
14781465
@pytest.mark.parametrize(
14791466
"shape",
14801467
[
@@ -1595,11 +1582,7 @@ def test_pinv(shape, hermitian, usm_type):
15951582
"(1, 0, 3)",
15961583
],
15971584
)
1598-
@pytest.mark.parametrize(
1599-
"mode",
1600-
["r", "raw", "complete", "reduced"],
1601-
ids=["r", "raw", "complete", "reduced"],
1602-
)
1585+
@pytest.mark.parametrize("mode", ["r", "raw", "complete", "reduced"])
16031586
def test_qr(shape, mode, usm_type):
16041587
count_elems = numpy.prod(shape)
16051588
a = dp.arange(count_elems, usm_type=usm_type).reshape(shape)
@@ -1782,7 +1765,7 @@ def test_unique(axis, usm_type):
17821765
assert x.usm_type == usm_type
17831766

17841767

1785-
@pytest.mark.parametrize("copy", [True, False], ids=["True", "False"])
1768+
@pytest.mark.parametrize("copy", [True, False])
17861769
@pytest.mark.parametrize("usm_type_a", list_of_usm_types, ids=list_of_usm_types)
17871770
def test_nan_to_num(copy, usm_type_a):
17881771
a = dp.array([-dp.nan, -1, 0, 1, dp.nan], usm_type=usm_type_a)

0 commit comments

Comments
 (0)