Przeglądaj źródła

Tests shall not require redis (Issue #1911)

Ask Solem 11 lat temu
rodzic
commit
1f7f95246b
1 zmienionych plików z 3 dodań i 1 usunięć
  1. 3 1
      celery/backends/redis.py

+ 3 - 1
celery/backends/redis.py

@@ -100,7 +100,9 @@ class RedisBackend(KeyValueStoreBackend):
             self.apply_chord = self._new_chord_apply
             self.on_chord_part_return = self._new_chord_return
 
-        self.connection_errors, self.channel_errors = get_redis_error_classes()
+        self.connection_errors, self.channel_errors = (
+            get_redis_error_classes() if get_redis_error_classes
+            else ((), ()))
 
     def _params_from_url(self, url, defaults):
         scheme, host, port, user, password, path, query = _parse_url(url)