mirror of
https://github.com/python-pillow/Pillow.git
synced 2025-01-23 15:54:09 +03:00
Merge pull request #1106 from hugovk/test_tiff_dict
Fix TIFF test for PyPy 2.5.0
This commit is contained in:
commit
43830273a5
|
@ -176,12 +176,23 @@ class TestFileTiff(PillowTestCase):
|
||||||
|
|
||||||
# Assert
|
# Assert
|
||||||
self.assertIsInstance(ret, str)
|
self.assertIsInstance(ret, str)
|
||||||
|
|
||||||
|
def test_as_dict(self):
|
||||||
|
# Arrange
|
||||||
|
filename = "Tests/images/pil136.tiff"
|
||||||
|
im = Image.open(filename)
|
||||||
|
|
||||||
|
# Act
|
||||||
|
ret = im.ifd.as_dict()
|
||||||
|
|
||||||
|
# Assert
|
||||||
|
self.assertIsInstance(ret, dict)
|
||||||
|
|
||||||
self.assertEqual(
|
self.assertEqual(
|
||||||
ret,
|
ret, {256: (55,), 257: (43,), 258: (8, 8, 8, 8), 259: (1,),
|
||||||
'{256: (55,), 257: (43,), 258: (8, 8, 8, 8), 259: (1,), '
|
262: (2,), 296: (2,), 273: (8,), 338: (1,), 277: (4,),
|
||||||
'262: (2,), 296: (2,), 273: (8,), 338: (1,), 277: (4,), '
|
279: (9460,), 282: ((720000, 10000),),
|
||||||
'279: (9460,), 282: ((720000, 10000),), '
|
283: ((720000, 10000),), 284: (1,)})
|
||||||
'283: ((720000, 10000),), 284: (1,)}')
|
|
||||||
|
|
||||||
def test__delitem__(self):
|
def test__delitem__(self):
|
||||||
# Arrange
|
# Arrange
|
||||||
|
|
Loading…
Reference in New Issue
Block a user