File tree Expand file tree Collapse file tree 2 files changed +5
-6
lines changed Expand file tree Collapse file tree 2 files changed +5
-6
lines changed Original file line number Diff line number Diff line change @@ -567,6 +567,11 @@ def handler(*args):
567567
568568 return p .exitcode
569569
570+ def test_interrupt (self ):
571+ if os .name != 'nt' :
572+ exitcode = self ._kill_process (multiprocessing .Process .interrupt )
573+ self .assertEqual (exitcode , - signal .SIGINT )
574+
570575 def test_terminate (self ):
571576 exitcode = self ._kill_process (multiprocessing .Process .terminate )
572577 self .assertEqual (exitcode , - signal .SIGTERM )
Original file line number Diff line number Diff line change @@ -2440,12 +2440,6 @@ def test_send_signal(self):
24402440 self .assertIn (b'KeyboardInterrupt' , stderr )
24412441 self .assertNotEqual (p .wait (), 0 )
24422442
2443- def test_interrupt (self ):
2444- p = self ._kill_process ('interrupt' )
2445- _ , stderr = p .communicate ()
2446- self .assertIn (b'KeyboardInterrupt' , stderr )
2447- self .assertNotEqual (p .wait (), 0 )
2448-
24492443 def test_kill (self ):
24502444 p = self ._kill_process ('kill' )
24512445 _ , stderr = p .communicate ()
You can’t perform that action at this time.
0 commit comments