def only_posix(func): """Decorator for tests that are particular to POSIX.""" if get_os_name() in OsCollection_Posix: return func return None
def only_windows(func): """Decorator for tests that are particular to Windows.""" if get_os_name() == Os_Windows: return func return None