Skip to content

Commit

Permalink
Removed rq.compat (#314)
Browse files Browse the repository at this point in the history
* Removed rq.compat

* Install setuptools before running CI

* Properly decode strings
  • Loading branch information
selwin authored Oct 6, 2024
1 parent 63f2cc3 commit 656898e
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 4 deletions.
1 change: 1 addition & 0 deletions .github/workflows/workflow.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
3 changes: 1 addition & 2 deletions tests/fixtures.py
Original file line number Diff line number Diff line change
Expand Up @@ -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


Expand All @@ -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():
Expand Down
3 changes: 1 addition & 2 deletions tests/test_scheduler.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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):
Expand Down

0 comments on commit 656898e

Please sign in to comment.