mirror of
				https://github.com/python/cpython.git
				synced 2025-10-29 17:38:56 +00:00 
			
		
		
		
	 5adff3f86f
			
		
	
	
		5adff3f86f
		
			
		
	
	
	
	
		
			
			Some socket tests related to sending file descriptors cause a file descriptor leak on macOS, all of them tests that send one or more descriptors than cannot be received on the read end. This appears to be a platform bug. This PR skips those tests when doing a refleak test run to avoid hiding other problems.
		
			
				
	
	
		
			8 lines
		
	
	
	
		
			165 B
		
	
	
	
		
			Python
		
	
	
	
	
	
			
		
		
	
	
			8 lines
		
	
	
	
		
			165 B
		
	
	
	
		
			Python
		
	
	
	
	
	
| """
 | |
| Utilities for changing test behaviour while hunting
 | |
| for refleaks
 | |
| """
 | |
| 
 | |
| _hunting_for_refleaks = False
 | |
| def hunting_for_refleaks():
 | |
|     return _hunting_for_refleaks
 |