Esempio n. 1
0
 def test_cleanup_tuple(self):
     mem = memoryview(bytearray(b"xyz"))
     tp = types.UniTuple(types.Buffer(types.intc, 1, 'C'), 2)
     self.check_argument_cleanup(tp, (mem, mem))
Esempio n. 2
0
 def test_cleanup_optional(self):
     mem = memoryview(bytearray(b"xyz"))
     tp = types.Optional(types.Buffer(types.intc, 1, 'C'))
     self.check_argument_cleanup(tp, mem)
Esempio n. 3
0
 def test_cleanup_buffer(self):
     mem = memoryview(bytearray(b"xyz"))
     self.check_argument_cleanup(types.Buffer(types.intc, 1, 'C'), mem)