def test_reshape_empty_invalid(self, xp): a = testing.empty(xp) a = a.reshape(())
def test_reshape_empty(self, xp): a = testing.empty(xp) return a.reshape((0, ))
def test_reshape_empty_invalid(self): for xp in (numpy, cupy): a = testing.empty(xp) with pytest.raises(ValueError): a.reshape(())