forked from pool/python-rq-scheduler
to enable tests OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-rq-scheduler?expand=0&rev=6
43 lines
1.3 KiB
Diff
43 lines
1.3 KiB
Diff
Index: rq-scheduler-0.13.1/tests/fixtures.py
|
|
===================================================================
|
|
--- rq-scheduler-0.13.1.orig/tests/fixtures.py
|
|
+++ rq-scheduler-0.13.1/tests/fixtures.py
|
|
@@ -17,7 +17,6 @@ from multiprocessing import Process
|
|
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 str(say_hello(name)) # noqa
|
|
|
|
|
|
def do_nothing():
|
|
Index: rq-scheduler-0.13.1/tests/test_scheduler.py
|
|
===================================================================
|
|
--- rq-scheduler-0.13.1.orig/tests/test_scheduler.py
|
|
+++ rq-scheduler-0.13.1/tests/test_scheduler.py
|
|
@@ -10,7 +10,6 @@ import freezegun
|
|
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 [str(i) for i in l]
|
|
|
|
|
|
def simple_addition(x, y, z):
|