Browse Source

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 năm trước cách đây
mục cha
commit
8ace61935c
1 tập tin đã thay đổi với 2 bổ sung1 xóa
  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()