Remove tests of scatter_* with deprecated list indexes.
@@ -74,17 +74,17 @@ from cupy import testing
'value': numpy.random.uniform(size=(3, 4))},
{'shape': (2, 3, 4), 'slices': numpy.array([], dtype=numpy.int32),
'value': 1},
- {'shape': (2, 3, 4), 'slices': [[]],
+ {'shape': (2, 3, 4), 'slices': ([],),
'value': 1},
{'shape': (2, 3, 4), 'slices': numpy.array([[]], dtype=numpy.int32),
'value': numpy.random.uniform(size=(3, 4))},
- {'shape': (2, 3, 4), 'slices': [[[]]],
+ {'shape': (2, 3, 4), 'slices': ([[]],),
'value': 1},
- {'shape': (2, 3, 4), 'slices': [[[[]]]],
+ {'shape': (2, 3, 4), 'slices': ([[[]]],),
'value': 1},
- {'shape': (2, 3, 4, 5), 'slices': [[[[]]]],
+ {'shape': (2, 3, 4, 5), 'slices': ([[[]]],),
'value': 1},
- {'shape': (2, 3, 4, 5), 'slices': [[[[[]]]]],
+ {'shape': (2, 3, 4, 5), 'slices': ([[[[]]]],),
'value': 1},
{'shape': (2, 3, 4), 'slices': (slice(None), []),
'value': 1},
@@ -101,12 +101,12 @@ from cupy import testing
{'shape': (2, 3, 4), 'slices': [1], 'value': 1},
{'shape': (2, 3, 4), 'slices': [1, 1],
'value': numpy.arange(2 * 3 * 4).reshape(2, 3, 4)},
- {'shape': (2, 3, 4), 'slices': [[1]], 'value': 1},
- {'shape': (2, 3, 4), 'slices': [[1, 1]], 'value': 1},
- {'shape': (2, 3, 4), 'slices': [[1], [1]], 'value': 1},
- {'shape': (2, 3, 4), 'slices': [[1, 1], 1], 'value': 1},
- {'shape': (2, 3, 4), 'slices': [[1], slice(1, 2)], 'value': 1},
- {'shape': (2, 3, 4), 'slices': [[[1]], slice(1, 2)], 'value': 1},
+ {'shape': (2, 3, 4), 'slices': ([1],), 'value': 1},
+ {'shape': (2, 3, 4), 'slices': ([1, 1],), 'value': 1},
+ {'shape': (2, 3, 4), 'slices': ([1], [1]), 'value': 1},
+ {'shape': (2, 3, 4), 'slices': ([1, 1], 1), 'value': 1},
+ {'shape': (2, 3, 4), 'slices': ([1], slice(1, 2)), 'value': 1},
+ {'shape': (2, 3, 4), 'slices': ([[1]], slice(1, 2)), 'value': 1},
)
@testing.gpu
class TestScatterParametrized(unittest.TestCase):
