fixed broken test

This commit is contained in:
Ken Cochrane 2023-02-22 18:11:04 -05:00
parent 2b5bffd687
commit 93cd130da2

View file

@ -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()