コード例 #1
0
ファイル: _common.py プロジェクト: aknuds1/srl-python-lib
def only_posix(func):
    """Decorator for tests that are particular to POSIX."""
    if get_os_name() in OsCollection_Posix:
        return func
    return None
コード例 #2
0
ファイル: _common.py プロジェクト: aknuds1/srl-python-lib
def only_windows(func):
    """Decorator for tests that are particular to Windows."""
    if get_os_name() == Os_Windows:
        return func
    return None