Test passes for 2.9.0, fails for 3.0.0

This commit is contained in:
hugovk 2015-10-07 12:24:15 +03:00 committed by wiredfool
parent b3a6eca1c6
commit d9c90bba91
2 changed files with 17 additions and 0 deletions

BIN
Tests/images/exif_gps.jpg Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.1 KiB

View File

@ -171,6 +171,23 @@ class TestFileJpeg(PillowTestCase):
# Should not raise a TypeError
im._getexif()
def test_exif_gps(self):
# Arrange
im = Image.open('Tests/images/exif_gps.jpg')
gps_index = 34853
expected_exif_gps = {
0: '\x00\x00\x00\x01',
2: (4294967295L, 1),
5: '\x01',
30: 65535,
29: u'1999:99:99 99:99:99'}
# Act
exif = im._getexif()
# Assert
self.assertEqual(exif[gps_index], expected_exif_gps)
def test_exif_gps_typeerror(self):
im = Image.open('Tests/images/exif_gps_typeerror.jpg')