mirror of
https://github.com/tinygrad/tinygrad.git
synced 2026-04-29 03:00:14 -04:00
assert __setitem__ if used other than disk (#3972)
* assert `__setitem__` if used other than disk * that is not implemented
This commit is contained in:
@@ -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
|
||||
'''
|
||||
|
||||
Reference in New Issue
Block a user