Fix test_shape
@@ -46,14 +46,14 @@ class TestShape(unittest.TestCase):
a = testing.shaped_arange((2, 3, 4), xp)
return a.reshape(3, -1)
+ @testing.numpy_cupy_raises()
def test_reshape_with_multiple_unknown_dimensions(self):
a = testing.shaped_arange((2, 3, 4))
- with self.assertRaises(ValueError):
a.reshape(3, -1, -1)
+ @testing.numpy_cupy_raises()
def test_reshape_with_changed_arraysize(self):
a = testing.shaped_arange((2, 3, 4))
- with self.assertRaises(ValueError):
a.reshape(2, 4, 4)
@testing.numpy_cupy_array_equal()
