ソースを参照

Windows: SIGKILL not available

Ask Solem 11 年 前
コミット
42acb300c4
1 ファイル変更3 行追加1 行削除
  1. 3 1
      celery/tests/bin/test_multi.py

+ 3 - 1
celery/tests/bin/test_multi.py

@@ -19,7 +19,7 @@ from celery.bin.multi import (
     __doc__ as doc,
     __doc__ as doc,
 )
 )
 
 
-from celery.tests.case import AppCase, WhateverIO
+from celery.tests.case import AppCase, WhateverIO, SkipTest
 
 
 
 
 class test_functions(AppCase):
 class test_functions(AppCase):
@@ -271,6 +271,8 @@ class test_MultiTool(AppCase):
         )
         )
 
 
     def test_kill(self):
     def test_kill(self):
+        if not hasattr(signal, 'SIGKILL'):
+            raise SkipTest('SIGKILL not supported by this platform')
         self.t.getpids = Mock()
         self.t.getpids = Mock()
         self.t.getpids.return_value = [
         self.t.getpids.return_value = [
             ('a', None, 10),
             ('a', None, 10),