소스 검색

Fixes tests

Ask Solem 11 년 전
부모
커밋
5bf8927b44
1개의 변경된 파일2개의 추가작업 그리고 0개의 파일을 삭제
  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