diff options
author | Selwin Ong <selwin.ong@gmail.com> | 2020-01-31 19:28:32 +0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-01-31 19:28:32 +0700 |
commit | fda4b35f4667cebada1a541b141707aa63b19c4f (patch) | |
tree | 95b4f5da74a3a92cb681e8add262a93dabad5888 /tests/test_connection.py | |
parent | 90e032cd645f91a0a999b4494cd30a0affb42cb3 (diff) | |
download | rq-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.py | 6 |
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() |