mirror of
https://github.com/python-pillow/Pillow.git
synced 2024-11-10 19:56:47 +03:00
test Exif self-equality
This commit is contained in:
parent
9db5266fa7
commit
1fd9ccfe3c
|
@ -241,6 +241,15 @@ class TestFileJpeg:
|
||||||
|
|
||||||
# Assert
|
# Assert
|
||||||
assert exif[gps_index] == expected_exif_gps
|
assert exif[gps_index] == expected_exif_gps
|
||||||
|
|
||||||
|
def test_exif_equality(self):
|
||||||
|
# in 7.2.0 Exif rationals are read as TiffImagePlugin.IFDRational
|
||||||
|
# which broke self-equality of Exif data
|
||||||
|
exifs = []
|
||||||
|
for i in range(2):
|
||||||
|
with Image.open("Tests/images/exif-200dpcm.jpg") as im:
|
||||||
|
exifs.append(im._getexif())
|
||||||
|
assert exifs[0] == exifs[1]
|
||||||
|
|
||||||
def test_exif_rollback(self):
|
def test_exif_rollback(self):
|
||||||
# rolling back exif support in 3.1 to pre-3.0 formatting.
|
# rolling back exif support in 3.1 to pre-3.0 formatting.
|
||||||
|
|
Loading…
Reference in New Issue
Block a user