diff --git a/.github/workflows/workflow.yml b/.github/workflows/workflow.yml index 8fc5ff6..0fa26d0 100644 --- a/.github/workflows/workflow.yml +++ b/.github/workflows/workflow.yml @@ -35,6 +35,7 @@ jobs: - name: Install dependencies run: | python -m pip install --upgrade pip + python -m pip install setuptools pip install redis==${{ matrix.redis-py-version }} python setup.py install diff --git a/tests/fixtures.py b/tests/fixtures.py index 842e293..870b7c2 100644 --- a/tests/fixtures.py +++ b/tests/fixtures.py @@ -17,7 +17,6 @@ from redis import Redis from rq import Connection, get_current_job, get_current_connection, Queue from rq.decorators import job -from rq.compat import text_type from rq.worker import HerokuWorker, Worker @@ -39,7 +38,7 @@ async def say_hello_async(name=None): def say_hello_unicode(name=None): """A job with a single argument and a return value.""" - return text_type(say_hello(name)) # noqa + return say_hello(name) def do_nothing(): diff --git a/tests/test_scheduler.py b/tests/test_scheduler.py index ada30f4..7fde8af 100644 --- a/tests/test_scheduler.py +++ b/tests/test_scheduler.py @@ -10,7 +10,6 @@ from dateutil.tz import tzlocal from dateutil.tz import UTC from rq import Queue -from rq.compat import as_text from rq.job import Job from rq_scheduler import Scheduler @@ -28,7 +27,7 @@ def say_hello(name=None): def tl(l): - return [as_text(i) for i in l] + return [i.decode() for i in l] def simple_addition(x, y, z):