Kaynağa Gözat

Fixes tests

Ask Solem 11 yıl önce
ebeveyn
işleme
5bf8927b44
1 değiştirilmiş dosya ile 2 ekleme ve 0 silme
  1. 2 0
      celery/tests/concurrency/test_prefork.py

+ 2 - 0
celery/tests/concurrency/test_prefork.py

@@ -233,6 +233,8 @@ class test_ResultHandler(PoolCase):
             on_job_ready=Mock(),
         )
         self.assertTrue(x)
+        hub = Mock(name='hub')
+        x.register_with_event_loop(hub)
         x.on_state_change = Mock()
         proc = x.fileno_to_outq[3] = Mock()
         reader = proc.outq._reader