mirror of
https://github.com/python-pillow/Pillow.git
synced 2024-12-24 17:06:16 +03:00
Test passes for 2.9.0, fails for 3.0.0
This commit is contained in:
parent
b3a6eca1c6
commit
d9c90bba91
BIN
Tests/images/exif_gps.jpg
Normal file
BIN
Tests/images/exif_gps.jpg
Normal file
Binary file not shown.
After Width: | Height: | Size: 1.1 KiB |
|
@ -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')
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user