Beispiel #1
0
 def test_invalid_view_after_resize(self):
     dtype = np.dtype([('position', np.float32, 3),
                       ('texcoord', np.float32, 2),
                       ('color',    np.float32, 4)])
     data = np.zeros(10, dtype=dtype)
     B = DataBuffer(data)
     Z = B[5:]
     B.resize(5)
     assert Z._valid is False