def setup_function(f): try: handle = xs() except Error: return # Failed to connect. try: handle.rm(0, b"/foo") except Error: pass finally: handle.close()
def handle(): handle = xs() try: yield handle finally: handle.close()