diff --git a/defender/tests.py b/defender/tests.py index 13af92e..3da54c7 100644 --- a/defender/tests.py +++ b/defender/tests.py @@ -1224,6 +1224,10 @@ class TestRedisConnection(TestCase): """ get redis connection with name and password """ connection = redis.Redis() + if connection.info().get('redis_version') < '6': + # redis versions before 6 don't support name, so skip. + return + connection.config_set('requirepass', 'mypass') redis_client = get_redis_connection()