summaryrefslogtreecommitdiff
path: root/tests/test_connection.py
diff options
context:
space:
mode:
authorSelwin Ong <selwin.ong@gmail.com>2020-01-31 19:28:32 +0700
committerGitHub <noreply@github.com>2020-01-31 19:28:32 +0700
commitfda4b35f4667cebada1a541b141707aa63b19c4f (patch)
tree95b4f5da74a3a92cb681e8add262a93dabad5888 /tests/test_connection.py
parent90e032cd645f91a0a999b4494cd30a0affb42cb3 (diff)
downloadrq-fda4b35f4667cebada1a541b141707aa63b19c4f.tar.gz
Fixes Job.fetch when return value is unpickleable (#1184)
* Fixes Job.fetch when return value is unpickleable * Fixed connection test in newer versions of Redis
Diffstat (limited to 'tests/test_connection.py')
-rw-r--r--tests/test_connection.py6
1 files changed, 4 insertions, 2 deletions
diff --git a/tests/test_connection.py b/tests/test_connection.py
index c04358b..2f8be86 100644
--- a/tests/test_connection.py
+++ b/tests/test_connection.py
@@ -2,6 +2,8 @@
from __future__ import (absolute_import, division, print_function,
unicode_literals)
+from redis import Redis
+
from rq import Connection, Queue, use_connection, get_current_connection, pop_connection
from rq.connections import NoRedisConnectionException
@@ -21,8 +23,8 @@ class TestConnectionInheritance(RQTestCase):
def test_connection_stacking(self):
"""Connection stacking."""
- conn1 = new_connection()
- conn2 = new_connection()
+ conn1 = Redis(db=4)
+ conn2 = Redis(db=5)
with Connection(conn1):
q1 = Queue()