예제 #1
0
파일: test__compat.py 프로젝트: xenpm/pyxs
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()
예제 #2
0
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()
예제 #3
0
파일: test__compat.py 프로젝트: xenpm/pyxs
def handle():
    handle = xs()
    try:
        yield handle
    finally:
        handle.close()
예제 #4
0
def handle():
    handle = xs()
    try:
        yield handle
    finally:
        handle.close()