@@ -1272,7 +1272,7 @@ def test_advanced1_inc_and_set(self):
12721272 if len (inc_shape ) == len (data_shape ) and (
12731273 len (inc_shapes ) == 0 or inc_shape [0 ] != 1
12741274 ):
1275- inc_shape = (n_to_inc ,) + inc_shape [1 :]
1275+ inc_shape = (n_to_inc , * inc_shape [1 :])
12761276
12771277 # Symbolic variable with increment value.
12781278 inc_var_static_shape = tuple (
@@ -2822,15 +2822,15 @@ def bcast_shape_tuple(x):
28222822 (np .arange (np .prod ((5 , 6 , 7 , 8 ))).reshape ((5 , 6 , 7 , 8 )), test_idx [:2 ]),
28232823 (
28242824 np .arange (np .prod ((5 , 6 , 7 , 8 ))).reshape ((5 , 6 , 7 , 8 )),
2825- test_idx [:2 ] + ( slice (None , None ), ),
2825+ ( * test_idx [:2 ], slice (None , None )),
28262826 ),
28272827 (
28282828 np .arange (np .prod ((5 , 6 , 7 , 8 ))).reshape ((5 , 6 , 7 , 8 )),
2829- (slice (None , None ),) + test_idx [:1 ],
2829+ (slice (None , None ), * test_idx [:1 ]) ,
28302830 ),
28312831 (
28322832 np .arange (np .prod ((5 , 6 , 7 , 8 ))).reshape ((5 , 6 , 7 , 8 )),
2833- (slice (None , None ), None ) + test_idx [1 :2 ],
2833+ (slice (None , None ), None , * test_idx [1 :2 ]) ,
28342834 ),
28352835 (
28362836 np .arange (np .prod ((5 , 6 , 7 , 8 ))).reshape ((5 , 6 , 7 , 8 )),
@@ -2842,15 +2842,15 @@ def bcast_shape_tuple(x):
28422842 ),
28432843 (
28442844 np .arange (np .prod ((5 , 6 , 7 , 8 ))).reshape ((5 , 6 , 7 , 8 )),
2845- test_idx [:1 ] + ( slice (None , None ),) + test_idx [1 :2 ],
2845+ ( * test_idx [:1 ], slice (None , None ), * test_idx [1 :2 ]) ,
28462846 ),
28472847 (
28482848 np .arange (np .prod ((5 , 6 , 7 , 8 ))).reshape ((5 , 6 , 7 , 8 )),
2849- test_idx [:1 ] + ( slice (None , None ),) + test_idx [1 :2 ] + ( slice (None , None ), ),
2849+ ( * test_idx [:1 ], slice (None , None ), * test_idx [1 :2 ], slice (None , None )),
28502850 ),
28512851 (
28522852 np .arange (np .prod ((5 , 6 , 7 , 8 ))).reshape ((5 , 6 , 7 , 8 )),
2853- test_idx [:1 ] + ( None ,) + test_idx [1 :2 ],
2853+ ( * test_idx [:1 ], None , * test_idx [1 :2 ]) ,
28542854 ),
28552855 (np .arange (np .prod ((5 , 4 ))).reshape ((5 , 4 )), ([1 , 3 , 2 ], slice (1 , 3 ))),
28562856 (np .arange (np .prod ((5 , 4 ))).reshape ((5 , 4 )), (slice (1 , 3 ), [1 , 3 , 2 ])),
0 commit comments