mirror of
				https://github.com/python/cpython.git
				synced 2025-11-03 23:21:29 +00:00 
			
		
		
		
	The SIGINT signal may happen earlier, during site.py initialization.
This commit is contained in:
		
							parent
							
								
									9858f635a0
								
							
						
					
					
						commit
						3c919cf140
					
				
					 1 changed files with 1 additions and 4 deletions
				
			
		| 
						 | 
				
			
			@ -669,10 +669,7 @@ def _kill_process(self, method, *args):
 | 
			
		|||
    def test_send_signal(self):
 | 
			
		||||
        p = self._kill_process('send_signal', signal.SIGINT)
 | 
			
		||||
        _, stderr = p.communicate()
 | 
			
		||||
        self.assertStderrEqual(stderr,
 | 
			
		||||
            "Traceback (most recent call last):\n"
 | 
			
		||||
            "  File \"<string>\", line 1, in <module>\n"
 | 
			
		||||
            "KeyboardInterrupt\n")
 | 
			
		||||
        self.assertIn('KeyboardInterrupt', stderr)
 | 
			
		||||
        self.assertNotEqual(p.wait(), 0)
 | 
			
		||||
 | 
			
		||||
    def test_kill(self):
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue