assert __setitem__ if used other than disk (#3972)

* assert `__setitem__` if used other than disk

* that is not implemented
This commit is contained in:
chenyu
2024-03-28 12:16:38 -04:00
committed by GitHub
parent 4b95350c41
commit bfcaa2f70e
2 changed files with 5 additions and 2 deletions

View File

@@ -1525,7 +1525,8 @@ class TestNumpy(unittest.TestCase):
def test_broaderrors_indexing(self):
a = Tensor.zeros(5, 5)
self.assertRaises(IndexError, a.__getitem__, ([0, 1], [0, 1, 2]))
self.assertRaises(IndexError, a.__setitem__, ([0, 1], [0, 1, 2]), 0)
# TODO setitem
# self.assertRaises(IndexError, a.__setitem__, ([0, 1], [0, 1, 2]), 0)
# TODO setitem
'''