mirror of
				https://github.com/python/cpython.git
				synced 2025-10-31 05:31:20 +00:00 
			
		
		
		
	On some systems (e.g., Ubuntu on hppa) the flush()
doesn't cause the exception, but the close() does. Will backport.
This commit is contained in:
		
							parent
							
								
									37184295dc
								
							
						
					
					
						commit
						7f47d93f52
					
				
					 1 changed files with 3 additions and 0 deletions
				
			
		|  | @ -53,6 +53,9 @@ def test_fsize_enforced(self): | |||
|                     try: | ||||
|                         f.write("Y") | ||||
|                         f.flush() | ||||
|                         # On some systems (e.g., Ubuntu on hppa) the flush() | ||||
|                         # doesn't cause the exception, but the close() does. | ||||
|                         f.close() | ||||
|                     except IOError: | ||||
|                         if not limit_set: | ||||
|                             raise | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue
	
	 Neal Norwitz
						Neal Norwitz