mirror of
				https://github.com/python-pillow/Pillow.git
				synced 2025-11-04 01:47:47 +03:00 
			
		
		
		
	Updated return type
This commit is contained in:
		
							parent
							
								
									66fe28956b
								
							
						
					
					
						commit
						0572221299
					
				| 
						 | 
					@ -1125,8 +1125,6 @@ class TestFileLibTiff(LibTiffTestCase):
 | 
				
			||||||
            for i in range(2, 9):
 | 
					            for i in range(2, 9):
 | 
				
			||||||
                with Image.open("Tests/images/g4_orientation_" + str(i) + ".tif") as im:
 | 
					                with Image.open("Tests/images/g4_orientation_" + str(i) + ".tif") as im:
 | 
				
			||||||
                    transposed_im = ImageOps.exif_transpose(im)
 | 
					                    transposed_im = ImageOps.exif_transpose(im)
 | 
				
			||||||
                    assert transposed_im is not None
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
                    assert_image_similar(base_im, transposed_im, 0.7)
 | 
					                    assert_image_similar(base_im, transposed_im, 0.7)
 | 
				
			||||||
 | 
					
 | 
				
			||||||
    @pytest.mark.parametrize(
 | 
					    @pytest.mark.parametrize(
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
| 
						 | 
					@ -440,11 +440,10 @@ def test_exif_transpose() -> None:
 | 
				
			||||||
    # Orientation from "Raw profile type exif" info key
 | 
					    # Orientation from "Raw profile type exif" info key
 | 
				
			||||||
    # This test image has been manually hexedited from exif_imagemagick.png
 | 
					    # This test image has been manually hexedited from exif_imagemagick.png
 | 
				
			||||||
    # to have a different orientation
 | 
					    # to have a different orientation
 | 
				
			||||||
    with Image.open("Tests/images/exif_imagemagick_orientation.png") as img:
 | 
					    with Image.open("Tests/images/exif_imagemagick_orientation.png") as im:
 | 
				
			||||||
        assert img.getexif()[0x0112] == 3
 | 
					        assert im.getexif()[0x0112] == 3
 | 
				
			||||||
 | 
					
 | 
				
			||||||
        transposed_im = ImageOps.exif_transpose(img)
 | 
					        transposed_im = ImageOps.exif_transpose(im)
 | 
				
			||||||
        assert transposed_im is not None
 | 
					 | 
				
			||||||
        assert 0x0112 not in transposed_im.getexif()
 | 
					        assert 0x0112 not in transposed_im.getexif()
 | 
				
			||||||
 | 
					
 | 
				
			||||||
    # Orientation set directly on Image.Exif
 | 
					    # Orientation set directly on Image.Exif
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
		Reference in New Issue
	
	Block a user