Example #1
0
 def test_sizeof_without_buffer(self):
     a = array.array(self.typecode)
     basesize = test_support.calcvobjsize('4P')
     test_support.check_sizeof(self, a, basesize)
Example #2
0
 def test_sizeof_without_buffer(self):
     a = array.array(self.typecode)
     basesize = test_support.calcvobjsize('4P')
     test_support.check_sizeof(self, a, basesize)
Example #3
0
 def test_sizeof_with_buffer(self):
     a = array.array(self.typecode, self.example)
     basesize = test_support.calcvobjsize('4P')
     buffer_size = a.buffer_info()[1] * a.itemsize
     test_support.check_sizeof(self, a, basesize + buffer_size)
Example #4
0
 def test_sizeof_with_buffer(self):
     a = array.array(self.typecode, self.example)
     basesize = test_support.calcvobjsize('4P')
     buffer_size = a.buffer_info()[1] * a.itemsize
     test_support.check_sizeof(self, a, basesize + buffer_size)