Exemplo 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))
Exemplo 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)
Exemplo n.º 3
0
 def test_cleanup_buffer(self):
     mem = memoryview(bytearray(b"xyz"))
     self.check_argument_cleanup(types.Buffer(types.intc, 1, 'C'), mem)