mirror of
				https://github.com/python-pillow/Pillow.git
				synced 2025-10-31 07:57:27 +03:00 
			
		
		
		
	Simplified code
This commit is contained in:
		
							parent
							
								
									5853632a8f
								
							
						
					
					
						commit
						86b251f40e
					
				|  | @ -764,7 +764,7 @@ class TestFileJpeg: | ||||||
|             img = Image.new(mode, (20, 20)) |             img = Image.new(mode, (20, 20)) | ||||||
|             img.save(out, "JPEG", convert_mode=True) |             img.save(out, "JPEG", convert_mode=True) | ||||||
| 
 | 
 | ||||||
|         temp_file = str(tmp_path / "temp.jpg") |         temp_file = tmp_path / "temp.jpg" | ||||||
|         with Image.open("Tests/images/pil123rgba.png") as img: |         with Image.open("Tests/images/pil123rgba.png") as img: | ||||||
|             img.save(temp_file, convert_mode=True, fill_color="red") |             img.save(temp_file, convert_mode=True, fill_color="red") | ||||||
| 
 | 
 | ||||||
|  |  | ||||||
|  | @ -507,7 +507,7 @@ class TestImage: | ||||||
|     def test_no_supported_modes_method(self, tmp_path: Path) -> None: |     def test_no_supported_modes_method(self, tmp_path: Path) -> None: | ||||||
|         assert not hasattr(TiffImagePlugin, "_supported_modes") |         assert not hasattr(TiffImagePlugin, "_supported_modes") | ||||||
| 
 | 
 | ||||||
|         temp_file = str(tmp_path / "temp.tiff") |         temp_file = tmp_path / "temp.tiff" | ||||||
| 
 | 
 | ||||||
|         im = hopper() |         im = hopper() | ||||||
|         im.save(temp_file, convert_mode=True) |         im.save(temp_file, convert_mode=True) | ||||||
|  |  | ||||||
		Loading…
	
		Reference in New Issue
	
	Block a user