mirror of
				https://github.com/python/cpython.git
				synced 2025-11-04 07:31:38 +00:00 
			
		
		
		
	#2777: Enable test_send_signal, test_terminate and test_kill on win32 platforms.
This commit is contained in:
		
							parent
							
								
									6de9e938a5
								
							
						
					
					
						commit
						c02bbe328d
					
				
					 1 changed files with 0 additions and 3 deletions
				
			
		| 
						 | 
				
			
			@ -768,7 +768,6 @@ def test_call_string(self):
 | 
			
		|||
                             ' -c "import sys; sys.exit(47)"')
 | 
			
		||||
        self.assertEqual(rc, 47)
 | 
			
		||||
 | 
			
		||||
    @unittest.skip("It fails on some win32 platforms. See issue #2777")
 | 
			
		||||
    def test_send_signal(self):
 | 
			
		||||
        # Redirect the stdin file handle.
 | 
			
		||||
        # It should fix failure on some win32 platforms.
 | 
			
		||||
| 
						 | 
				
			
			@ -779,7 +778,6 @@ def test_send_signal(self):
 | 
			
		|||
        p.send_signal(signal.SIGTERM)
 | 
			
		||||
        self.assertNotEqual(p.wait(), 0)
 | 
			
		||||
 | 
			
		||||
    @unittest.skip("It fails on some win32 platforms. See issue #2777")
 | 
			
		||||
    def test_kill(self):
 | 
			
		||||
        p = subprocess.Popen([sys.executable, "-c", "input()"],
 | 
			
		||||
                             stdin=subprocess.PIPE)
 | 
			
		||||
| 
						 | 
				
			
			@ -788,7 +786,6 @@ def test_kill(self):
 | 
			
		|||
        p.kill()
 | 
			
		||||
        self.assertNotEqual(p.wait(), 0)
 | 
			
		||||
 | 
			
		||||
    @unittest.skip("It fails on some win32 platforms. See issue #2777")
 | 
			
		||||
    def test_terminate(self):
 | 
			
		||||
        p = subprocess.Popen([sys.executable, "-c", "input()"],
 | 
			
		||||
                             stdin=subprocess.PIPE)
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue