Browse Source

Fix test when no kqueue

Ask Solem 13 years ago
parent
commit
354af2b4a1
1 changed files with 3 additions and 1 deletions
  1. 3 1
      celery/tests/worker/test_autoreload.py

+ 3 - 1
celery/tests/worker/test_autoreload.py

@@ -34,7 +34,9 @@ class test_WorkerComponent(AppCase):
         x.instantiate.assert_called_with(w.autoreloader_cls, w)
         self.assertIs(r, w.autoreloader)
 
-    def test_create_ev(self):
+    @patch("select.kevent")
+    @patch("select.kqueue")
+    def test_create_ev(self, kqueue, kevent):
         w = Mock()
         w.use_eventloop = True
         x = WorkerComponent(w)