mirror of
				https://github.com/python-pillow/Pillow.git
				synced 2025-10-31 07:57:27 +03:00 
			
		
		
		
	Changed file opening to use with
This commit is contained in:
		
							parent
							
								
									241f437b60
								
							
						
					
					
						commit
						4b1784c9ad
					
				|  | @ -26,7 +26,7 @@ class TestFileCur(PillowTestCase): | |||
|         no_cursors_file = "Tests/images/no_cursors.cur" | ||||
| 
 | ||||
|         cur = CurImagePlugin.CurImageFile(TEST_FILE) | ||||
|         cur.fp = open(no_cursors_file, "rb") | ||||
|         with open(no_cursors_file, "rb") as cur.fp: | ||||
|             self.assertRaises(TypeError, cur._open) | ||||
| 
 | ||||
| 
 | ||||
|  |  | |||
		Loading…
	
		Reference in New Issue
	
	Block a user