소스 검색

Skip test_kill on Windows (#3367)

Since os.kill() only works on Windows in Python 3.2+
and Celery 4.0 has been removed its Windows support,
just skip the test_kill test to make Windows CI happy.
Berker Peksag 8 년 전
부모
커밋
8ace61935c
1개의 변경된 파일2개의 추가작업 그리고 1개의 파일을 삭제
  1. 2 1
      celery/tests/apps/test_multi.py

+ 2 - 1
celery/tests/apps/test_multi.py

@@ -8,7 +8,7 @@ from celery.apps.multi import (
     Cluster, MultiParser, NamespacedOptionParser, Node, format_opt,
 )
 
-from celery.tests.case import AppCase, Mock, call, patch
+from celery.tests.case import AppCase, Mock, call, patch, skip
 
 
 class test_functions(AppCase):
@@ -376,6 +376,7 @@ class test_Cluster(AppCase):
         for node in nodes:
             node.send.assert_called_with(15, self.cluster.on_node_signal_dead)
 
+    @skip.if_win32()
     def test_kill(self):
         self.cluster.send_all = Mock(name='.send_all')
         self.cluster.kill()