mesonui/mesonuilib/utilitylib.py
def skip_if_no_git(self, f):
        '''
        Skip this test if no git is found, unless we're on CI.
        This allows users to run our test suite without having
        git installed on, f.ex., macOS, while ensuring that our CI does not
        silently skip the test because of misconfiguration.
        '''
        @functools.wraps(f)
        def wrapped(self, *args, **kwargs):
            if not self.is_ci() and shutil.which('git') is None:
                raise unittest.SkipTest('Git not found')
            return f(*args, **kwargs)
        return

        Skip this test if no git is found, unless we're on CI.
        This allows users to run our test suite without having
        git installed on, f.ex., macOS, while ensuring that our CI does not
        silently skip the test because of misconfiguration.
        
Skip this test if no git is found, unless we're on CI.
This allows users to run our test suite without having
git installed on, f.ex., macOS, while ensuring that our CI does not
silently skip the test because of misconfiguration.
Skip this test if no git is found unless we ' re on CI . This allows users to run our test suite without having git installed on f . ex . macOS while ensuring that our CI does not silently skip the test because of misconfiguration .
def skip_if_no_git(self, f):
        @functools.wraps(f)
        def wrapped(self, *args, **kwargs):
            if not self.is_ci() and shutil.which('git') is None:
                raise unittest.SkipTest('Git not found')
            return f(*args, **kwargs)
        return
def skip_if_no_git ( self , f ) : @ functools . wraps ( f ) def wrapped ( self , * args , ** kwargs ) : if not self . is_ci ( ) and shutil . which ( 'git' ) is None : raise unittest . SkipTest ( 'Git not found' ) return f ( * args , ** kwargs ) return
Skip this test if no git is found, unless we're on CI.
Skip this test if no git is found unless we ' re on CI .
'''
        Skip this test if no git is found, unless we're on CI.
        This allows users to run our test suite without having
        git installed on, f.ex., macOS, while ensuring that our CI does not
        silently skip the test because of misconfiguration.
        '''
self
f