mirror of
				https://github.com/python/cpython.git
				synced 2025-10-31 05:31:20 +00:00 
			
		
		
		
	Issue #10512: close the log file in cgi when running tests.
Thanks to Nadeem Vawda for the find and an initial fix.
This commit is contained in:
		
							parent
							
								
									7a54073a56
								
							
						
					
					
						commit
						eeb114b028
					
				
					 2 changed files with 3 additions and 0 deletions
				
			
		|  | @ -155,6 +155,7 @@ def test_log(self): | ||||||
|             cgi.logfp = None |             cgi.logfp = None | ||||||
|             cgi.logfile = "/dev/null" |             cgi.logfile = "/dev/null" | ||||||
|             cgi.initlog("%s", "Testing log 3") |             cgi.initlog("%s", "Testing log 3") | ||||||
|  |             self.addCleanup(cgi.logfp.close) | ||||||
|             cgi.log("Testing log 4") |             cgi.log("Testing log 4") | ||||||
| 
 | 
 | ||||||
|     def test_fieldstorage_readline(self): |     def test_fieldstorage_readline(self): | ||||||
|  |  | ||||||
|  | @ -54,6 +54,8 @@ Build | ||||||
| Tests | Tests | ||||||
| ----- | ----- | ||||||
| 
 | 
 | ||||||
|  | - Issue #10512: Properly close sockets under test.test_cgi. | ||||||
|  | 
 | ||||||
| - Issue #10992: Make tests pass under coverage. | - Issue #10992: Make tests pass under coverage. | ||||||
| 
 | 
 | ||||||
| - Issue #10826: Prevent sporadic failure in test_subprocess on Solaris due | - Issue #10826: Prevent sporadic failure in test_subprocess on Solaris due | ||||||
|  |  | ||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue
	
	 Brett Cannon
						Brett Cannon