def run_only_if_redis_is_available(func):
    """Decorator for checking if python-redis is available.
    Note: this test will be silently skipped if python-redis is missing.
    """
    try:
        import redis
    except ImportError:
        redis = None
    return run_only(func, lambda: redis is not None)
Decorator for checking if python-redis is available.
    Note: this test will be silently skipped if python-redis is missing.
    
src/collectors/sidekiq/test/testsidekiq.py