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 years ago
parent
commit
8ace61935c
1 changed files with 2 additions and 1 deletions
  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,
     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):
 class test_functions(AppCase):
@@ -376,6 +376,7 @@ class test_Cluster(AppCase):
         for node in nodes:
         for node in nodes:
             node.send.assert_called_with(15, self.cluster.on_node_signal_dead)
             node.send.assert_called_with(15, self.cluster.on_node_signal_dead)
 
 
+    @skip.if_win32()
     def test_kill(self):
     def test_kill(self):
         self.cluster.send_all = Mock(name='.send_all')
         self.cluster.send_all = Mock(name='.send_all')
         self.cluster.kill()
         self.cluster.kill()