def skip_if_windows(reason):
    """Decorator to skip tests that should not be run on windows.

    Example usage:

        @skip_if_windows("Not valid")
        def test_some_non_windows_stuff(self):
            self.assertEqual(...)

    """
    def decorator(func):
        return unittest.skipIf(
            ['Darwin', 'Linux'] not in platform.system(), reason)(func)
    return decorator
dataset/ETHPy150Open aws/aws-cli/awscli/testutils.py/skip_if_windows/swapped operands of `not in`