Exemplo n.º 1
0
def skip_on_centos7():
    """Decorator to allow selective skipping of test"""
    dist = distro.linux_distribution()
    if dist[0] == 'CentOS Linux' and dist[1] == '7':
        return skip('Newer software distribution needed')

    def _do(func):
        def wrapper(*args, **kwargs):
            return func(*args, **kwargs)

        return wrapper

    return _do
Exemplo n.º 2
0
Arquivo: test.py Projeto: clicx/daos
def skipForTicket(ticket):
    """Skip a test with a comment about a ticket."""
    return skip("Skipping until {} is fixed.".format(ticket))
Exemplo n.º 3
0
def skipForTicket(ticket):
    ''' Skip a test with a comment about a ticket'''
    return skip("Skipping until {} is fixed.".format(ticket))