1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21
|
Description: Fix test with new redis-py
In the new version the initialization changed so the old class no
longer works.
An alias is provided that is bound to Hiredis if it exists.
.
Thanks to Colin Watson for the investigation
Author: Salvo 'LtWorf' Tomaselli <ltworf@debian.org>
Forwarded: https://github.com/django-q2/django-q2/pull/282
Last-Update: 2025-04-29
--- django-q-1.7.4.orig/django_q/tests/settings.py
+++ django-q-1.7.4/django_q/tests/settings.py
@@ -116,7 +116,7 @@ CACHES = {
"LOCATION": f"redis://{REDIS_HOST}:6379/0",
"OPTIONS": {
"CLIENT_CLASS": "django_redis.client.DefaultClient",
- "PARSER_CLASS": "redis.connection.HiredisParser",
+ "PARSER_CLASS": "redis.connection.DefaultParser",
},
}
}
|