@@ -491,7 +491,7 @@ def test_mixed_index_getitem():
491
491
x = dpt .reshape (dpt .arange (1000 , dtype = "i4" ), (10 , 10 , 10 ))
492
492
i1b = dpt .ones (10 , dtype = "?" )
493
493
info = x .__array_namespace__ ().__array_namespace_info__ ()
494
- ind_dt = info .default_dtypes (x .device )["indexing" ]
494
+ ind_dt = info .default_dtypes (device = x .device )["indexing" ]
495
495
i0 = dpt .asarray ([0 , 2 , 3 ], dtype = ind_dt )[:, dpt .newaxis ]
496
496
i2 = dpt .asarray ([3 , 4 , 7 ], dtype = ind_dt )[:, dpt .newaxis ]
497
497
y = x [i0 , i1b , i2 ]
@@ -503,7 +503,7 @@ def test_mixed_index_setitem():
503
503
x = dpt .reshape (dpt .arange (1000 , dtype = "i4" ), (10 , 10 , 10 ))
504
504
i1b = dpt .ones (10 , dtype = "?" )
505
505
info = x .__array_namespace__ ().__array_namespace_info__ ()
506
- ind_dt = info .default_dtypes (x .device )["indexing" ]
506
+ ind_dt = info .default_dtypes (device = x .device )["indexing" ]
507
507
i0 = dpt .asarray ([0 , 2 , 3 ], dtype = ind_dt )[:, dpt .newaxis ]
508
508
i2 = dpt .asarray ([3 , 4 , 7 ], dtype = ind_dt )[:, dpt .newaxis ]
509
509
v_shape = (3 , int (dpt .sum (i1b , dtype = "i8" )))
0 commit comments