From c76c59133bfb4ff82d398b85f4f8e796343efaf0 Mon Sep 17 00:00:00 2001 From: Javier Lopez Date: Sun, 9 Aug 2015 17:45:21 +0200 Subject: [PATCH] Fix ValueError exception on relative import test_job raised an exception: ValueError: Attempted relative import in non-package --- tests/test_job.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/test_job.py b/tests/test_job.py index 6971d7b..1c92d84 100644 --- a/tests/test_job.py +++ b/tests/test_job.py @@ -5,7 +5,7 @@ from __future__ import (absolute_import, division, print_function, from datetime import datetime import time -from tests import RQTestCase +from tests import RQTestCase, fixtures from tests.helpers import strip_microseconds from rq.compat import PY2, as_text @@ -16,7 +16,7 @@ from rq.registry import DeferredJobRegistry from rq.utils import utcformat from rq.worker import Worker -from . import fixtures + try: from cPickle import loads, dumps