MCPcopy Index your code
hub / github.com/RustPython/RustPython / test_sizeof_with_buffer

Method test_sizeof_with_buffer

Lib/test/test_array.py:1171–1175  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

1169
1170 @support.cpython_only
1171 def test_sizeof_with_buffer(self):
1172 a = array.array(self.typecode, self.example)
1173 basesize = support.calcvobjsize('Pn2Pi')
1174 buffer_size = a.buffer_info()[1] * a.itemsize
1175 support.check_sizeof(self, a, basesize + buffer_size)
1176
1177 @support.cpython_only
1178 def test_sizeof_without_buffer(self):

Callers

nothing calls this directly

Calls 2

buffer_infoMethod · 0.80
check_sizeofMethod · 0.45

Tested by

no test coverage detected