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