diff --git a/rq/job.py b/rq/job.py index 6979180..e8080f8 100644 --- a/rq/job.py +++ b/rq/job.py @@ -2,7 +2,6 @@ from __future__ import (absolute_import, division, print_function, unicode_literals) -import types import inspect import warnings from functools import partial diff --git a/tests/test_job.py b/tests/test_job.py index 78e41e2..28fad40 100644 --- a/tests/test_job.py +++ b/tests/test_job.py @@ -346,5 +346,5 @@ class TestJob(RQTestCase): job = queue.enqueue(say_hello, job_id="1234") self.assertEqual(job.id, "1234") job.perform() - + self.assertRaises(TypeError, queue.enqueue, say_hello, job_id=1234)