예제 #1
0
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
def only_windows(func):
    """Decorator for tests that are particular to Windows."""
    if get_os_name() == Os_Windows:
        return func
    return None