浏览代码

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()