File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -141,16 +141,17 @@ def tearDown(self):
141141 self .stop .set_result (None )
142142 slack .RTMClient ._callbacks = collections .defaultdict (list )
143143
144- def test_kill_signals_are_handled_gracefully (self , mock_send ):
145- @slack .RTMClient .run_on (event = "open" )
146- def kill_on_open (** payload ):
147- rtm_client = payload ["rtm_client" ]
148- self .assertFalse (rtm_client ._stopped )
149- os .kill (os .getpid (), signal .SIGINT )
144+ if os .name != "nt" :
145+ def test_kill_signals_are_handled_gracefully (self , mock_send ):
146+ @slack .RTMClient .run_on (event = "open" )
147+ def kill_on_open (** payload ):
148+ rtm_client = payload ["rtm_client" ]
149+ self .assertFalse (rtm_client ._stopped )
150+ os .kill (os .getpid (), signal .SIGINT )
150151
151- self .client .start ()
152- self .assertTrue (self .client ._stopped )
153- self .assertIsNone (self .client ._websocket )
152+ self .client .start ()
153+ self .assertTrue (self .client ._stopped )
154+ self .assertIsNone (self .client ._websocket )
154155
155156 def test_client_auto_reconnects_if_connection_randomly_closes (self , mock_send ):
156157 @slack .RTMClient .run_on (event = "open" )
You can’t perform that action at this time.
0 commit comments