Skip to content

Commit

Permalink
Removed rq.compat
Browse files Browse the repository at this point in the history
  • Loading branch information
selwin committed Oct 6, 2024
1 parent 63f2cc3 commit cdb3d18
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
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 for i in l]


def simple_addition(x, y, z):
Expand Down

0 comments on commit cdb3d18

Please sign in to comment.