mirror of
				https://github.com/python/cpython.git
				synced 2025-11-03 23:21:29 +00:00 
			
		
		
		
	gh-110395: test: assert after the child dies. (#111816)
based on review from Victor Stinner. I already made this edit in the 3.12 backport PR.
This commit is contained in:
		
							parent
							
								
									c3e19c3a62
								
							
						
					
					
						commit
						d2ddfccfb4
					
				
					 1 changed files with 1 additions and 1 deletions
				
			
		| 
						 | 
					@ -271,8 +271,8 @@ def test_fork(self):
 | 
				
			||||||
            finally:
 | 
					            finally:
 | 
				
			||||||
                os._exit(0)
 | 
					                os._exit(0)
 | 
				
			||||||
        else:
 | 
					        else:
 | 
				
			||||||
            self.assertFalse(kqueue.closed)
 | 
					 | 
				
			||||||
            support.wait_process(pid, exitcode=0)
 | 
					            support.wait_process(pid, exitcode=0)
 | 
				
			||||||
 | 
					            self.assertFalse(kqueue.closed)  # child done, we're still open.
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					
 | 
				
			||||||
if __name__ == "__main__":
 | 
					if __name__ == "__main__":
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue