def close(self): """ Close this display connection. """ if self: xlib.close_display(self) self._as_parameter_ = None
def test_open_display(): display = xlib.open_display(None) assert display xlib.close_display(display)