コード例 #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
ファイル: test__compat.py プロジェクト: JKDingwall/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()
コード例 #3
0
ファイル: test__compat.py プロジェクト: xenpm/pyxs
def handle():
    handle = xs()
    try:
        yield handle
    finally:
        handle.close()
コード例 #4
0
ファイル: test__compat.py プロジェクト: JKDingwall/pyxs
def handle():
    handle = xs()
    try:
        yield handle
    finally:
        handle.close()