# This test def test___buffer__(self): import sys if '__pypy__' not in sys.builtin_module_names: skip('pypy only test') module = self.import_module(name='array') a = module.array('i', [1, 2, 3]) v = map(ord, a.__buffer__()) assert v == [1, 0, 0, 0, 2, 0, 0, 0, 3, 0, 0, 0] # has this in stderr DONE DONE DONE DONE DONE DONE DONE DONE DONE DONE DONE DONE DONE DONE DONE DONE DONE DONE DONE DONE DONE DONE DONE DONE DONE DONE DONE DONE DONE DONE DONE DONE DONE DONE DONE Exception Exception: Exception('invalid free() - data already freed or not allocated from RPython at all',) in ignored Fdealloc_trigger... deallocating PyObject * DONE DONE deallocating PyObject * DONE DONE deallocating PyObject * DONE DONE deallocating PyObject * DONE DONE DONE deallocating PyObject * DONE DONE DONE deallocating PyObject * DONE DONE DONE deallocating PyObject * DONE DONE DONE dealloc_trigger DONE dealloc_trigger... deallocating PyObject * DONE DONE DONE dealloc_trigger DONE