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