Parcourir la source

Windows: SIGKILL not available

Ask Solem il y a 11 ans
Parent
commit
42acb300c4
1 fichiers modifiés avec 3 ajouts et 1 suppressions
  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,
 )
 
-from celery.tests.case import AppCase, WhateverIO
+from celery.tests.case import AppCase, WhateverIO, SkipTest
 
 
 class test_functions(AppCase):
@@ -271,6 +271,8 @@ class test_MultiTool(AppCase):
         )
 
     def test_kill(self):
+        if not hasattr(signal, 'SIGKILL'):
+            raise SkipTest('SIGKILL not supported by this platform')
         self.t.getpids = Mock()
         self.t.getpids.return_value = [
             ('a', None, 10),