-
- # 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
-
- <function _Py_InitPyPyModule at 0x7f603b4dd320> DONE
- <function PyType_Ready at 0x7f603b3d4a28> DONE
- <function PyType_Ready at 0x7f603b3d4a28> DONE
- <function PyModule_Check at 0x7f603b4dd578> DONE
- <function PyModule_GetDict at 0x7f603b4dd6e0> DONE
- <function PyDict_GetItemString at 0x7f603b38b938> DONE
- <function PyDict_SetItemString at 0x7f603b38b758> DONE
- <function PyModule_Check at 0x7f603b4dd578> DONE
- <function PyModule_GetDict at 0x7f603b4dd6e0> DONE
- <function PyDict_GetItemString at 0x7f603b38b938> DONE
- <function PyDict_SetItemString at 0x7f603b38b758> DONE
- <function PyModule_Check at 0x7f603b4dd578> DONE
- <function PyModule_GetDict at 0x7f603b4dd6e0> DONE
- <function PyDict_GetItemString at 0x7f603b38b938> DONE
- <function PyDict_SetItemString at 0x7f603b38b758> DONE
- <function tp_new_wrapper at 0x7f603b3d1140> <function PyTuple_Check at 0x7f603b3e3b90> DONE
- <function PyString_Check at 0x7f603b421140> DONE
- <function PyString_Size at 0x7f603b424230> DONE
- <function PyString_AS_STRING at 0x7f603b421e60> DONE
- <function PyList_Check at 0x7f603b3958c0> DONE
- <function PyList_Check at 0x7f603b3958c0> DONE
- <function PySequence_Size at 0x7f603b3a7f50> DONE
- <function PyType_GenericAlloc at 0x7f603b3d9140> DONE
- <function PySequence_GetItem at 0x7f603b33c320> DONE
- <function PyFloat_Check at 0x7f603b8269b0> DONE
- <function PyInt_AsLong at 0x7f603b297c80> DONE
- <function PySequence_GetItem at 0x7f603b33c320> DONE
- <function PyFloat_Check at 0x7f603b8269b0> DONE
- <function PyInt_AsLong at 0x7f603b297c80> DONE
- <function PySequence_GetItem at 0x7f603b33c320> DONE
- <function PyFloat_Check at 0x7f603b8269b0> DONE
- <function PyInt_AsLong at 0x7f603b297c80> DONE
- DONE
- <function PyObject_GenericGetAttr at 0x7f603b2a7410> DONE
- <function PyBuffer_FillInfo at 0x7f603b347c80> DONE
- Exception Exception: Exception('invalid free() - data already freed or not allocated from RPython at all',) in <function callback at 0x7f6038654b18> ignored
- Fdealloc_trigger...
- deallocating PyObject * <C object Struct PyObject { c_ob_refcnt, c_ob_pypy_link, c_ob_type } at 0x2276f60>
- <function tuple_dealloc at 0x7f603b3ed0c8> <function PyObject_Free at 0x7f603b31eb18> DONE
- DONE
- deallocating PyObject * <C object Struct PyObject { c_ob_refcnt, c_ob_pypy_link, c_ob_type } at 0x235f490>
- <function dict_dealloc at 0x7f603b389a28> <function PyObject_Free at 0x7f603b31eb18> DONE
- DONE
- deallocating PyObject * <C object Struct PyObject { c_ob_refcnt, c_ob_pypy_link, c_ob_type } at 0x2361460>
- <function tuple_dealloc at 0x7f603b3ed0c8> <function PyObject_Free at 0x7f603b31eb18> DONE
- DONE
- deallocating PyObject * <C object Struct PyObject { c_ob_refcnt, c_ob_pypy_link, c_ob_type } at 0x2369730>
- <function subtype_dealloc at 0x7f603b3d1848> <function PyObject_dealloc at 0x7f603b320230> <function PyObject_Free at 0x7f603b31eb18> DONE
- DONE
- DONE
- deallocating PyObject * <C object Struct PyObject { c_ob_refcnt, c_ob_pypy_link, c_ob_type } at 0x236abd0>
- <function subtype_dealloc at 0x7f603b3d1848> <function PyObject_dealloc at 0x7f603b320230> <function PyObject_Free at 0x7f603b31eb18> DONE
- DONE
- DONE
- deallocating PyObject * <C object Struct PyObject { c_ob_refcnt, c_ob_pypy_link, c_ob_type } at 0x236c3b0>
- <function subtype_dealloc at 0x7f603b3d1848> <function PyObject_dealloc at 0x7f603b320230> <function PyObject_Free at 0x7f603b31eb18> DONE
- DONE
- DONE
- deallocating PyObject * <C object Struct PyObject { c_ob_refcnt, c_ob_pypy_link, c_ob_type } at 0x23994b0>
- <function subtype_dealloc at 0x7f603b3d1848> <function PyObject_dealloc at 0x7f603b320230> <function PyObject_Free at 0x7f603b31eb18> DONE
- DONE
- DONE
- dealloc_trigger DONE
- dealloc_trigger...
- deallocating PyObject * <C object Struct PyObject { c_ob_refcnt, c_ob_pypy_link, c_ob_type } at 0x235f470>
- <function subtype_dealloc at 0x7f603b3d1848> <function PyObject_dealloc at 0x7f603b320230> <function PyObject_Free at 0x7f603b31eb18> DONE
- DONE
- DONE
- dealloc_trigger DONE
-