@@ -372,7 +372,7 @@ def test_linspace_arrays(usm_type_start, usm_type_stop):
372
372
)
373
373
374
374
375
- @pytest .mark .parametrize ("func" , ["tril" , "triu" ], ids = [ "tril" , "triu" ] )
375
+ @pytest .mark .parametrize ("func" , ["tril" , "triu" ])
376
376
@pytest .mark .parametrize ("usm_type" , list_of_usm_types , ids = list_of_usm_types )
377
377
def test_tril_triu (func , usm_type ):
378
378
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):
433
433
assert z .usm_type == du .get_coerced_usm_type ([usm_type_x , usm_type_y ])
434
434
435
435
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" ])
439
437
@pytest .mark .parametrize ("usm_type_x" , list_of_usm_types , ids = list_of_usm_types )
440
438
def test_bitwise_op_1in (op , usm_type_x ):
441
439
x = dp .arange (- 10 , 10 , usm_type = usm_type_x )
@@ -447,13 +445,6 @@ def test_bitwise_op_1in(op, usm_type_x):
447
445
@pytest .mark .parametrize (
448
446
"op" ,
449
447
["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
- ],
457
448
)
458
449
@pytest .mark .parametrize ("usm_type_x" , list_of_usm_types , ids = list_of_usm_types )
459
450
@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):
1153
1144
1154
1145
1155
1146
@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 ])
1157
1148
def test_indices_sparse (usm_type , sparse ):
1158
1149
x = dp .indices ((2 , 3 ), sparse = sparse , usm_type = usm_type )
1159
1150
for i in x :
@@ -1469,12 +1460,8 @@ def test_inv(shape, is_empty, usm_type):
1469
1460
1470
1461
1471
1462
@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 ])
1478
1465
@pytest .mark .parametrize (
1479
1466
"shape" ,
1480
1467
[
@@ -1595,11 +1582,7 @@ def test_pinv(shape, hermitian, usm_type):
1595
1582
"(1, 0, 3)" ,
1596
1583
],
1597
1584
)
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" ])
1603
1586
def test_qr (shape , mode , usm_type ):
1604
1587
count_elems = numpy .prod (shape )
1605
1588
a = dp .arange (count_elems , usm_type = usm_type ).reshape (shape )
@@ -1782,7 +1765,7 @@ def test_unique(axis, usm_type):
1782
1765
assert x .usm_type == usm_type
1783
1766
1784
1767
1785
- @pytest .mark .parametrize ("copy" , [True , False ], ids = [ "True" , "False" ] )
1768
+ @pytest .mark .parametrize ("copy" , [True , False ])
1786
1769
@pytest .mark .parametrize ("usm_type_a" , list_of_usm_types , ids = list_of_usm_types )
1787
1770
def test_nan_to_num (copy , usm_type_a ):
1788
1771
a = dp .array ([- dp .nan , - 1 , 0 , 1 , dp .nan ], usm_type = usm_type_a )
0 commit comments