Ask Solem 12 years ago
parent
commit
48e07a9cd2
3 changed files with 2 additions and 7 deletions
  1. 1 4
      celery/tests/bin/test_celeryd.py
  2. 1 2
      celery/utils/timeutils.py
  3. 0 1
      celery/worker/components.py

+ 1 - 4
celery/tests/bin/test_celeryd.py

@@ -60,10 +60,6 @@ class Worker(cd.Worker):
     def start(self, *args, **kwargs):
         self.on_start()
 
-    def __init__(self, *args, **kwargs):
-        super(Worker, self).__init__(*args, **kwargs)
-        self.redirect_stdouts = False
-
 
 class test_Worker(AppCase):
 
@@ -372,6 +368,7 @@ class test_Worker(AppCase):
         self.Worker().on_consumer_ready(object())
         self.assertTrue(worker_ready_sent[0])
 
+
 class test_funs(AppCase):
 
     def test_active_thread_count(self):

+ 1 - 2
celery/utils/timeutils.py

@@ -11,9 +11,8 @@ from __future__ import absolute_import
 import time as _time
 from itertools import izip
 
-from kombu.utils import cached_property
-
 from datetime import datetime, timedelta, tzinfo
+
 from dateutil import tz
 from dateutil.parser import parse as parse_iso8601
 from kombu.utils import cached_property

+ 0 - 1
celery/worker/components.py

@@ -23,7 +23,6 @@ from .buckets import TaskBucket, FastQueue
 from .hub import Hub, BoundedSemaphore
 
 
-
 class Pool(bootsteps.StartStopComponent):
     """The pool component.