We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents b5357c4 + 5ef5a3c commit 02f99c5Copy full SHA for 02f99c5
1 file changed
Tests/test_file_tiff.py
@@ -63,8 +63,11 @@ def test_wrong_bits_per_sample(self):
63
im.load()
64
65
def test_set_legacy_api(self):
66
- with self.assertRaises(Exception):
67
- ImageFileDirectory_v2.legacy_api = None
+ ifd = TiffImagePlugin.ImageFileDirectory_v2()
+ with self.assertRaises(Exception) as e:
68
+ ifd.legacy_api = None
69
+ self.assertEqual(str(e.exception),
70
+ "Not allowing setting of legacy api")
71
72
def test_xyres_tiff(self):
73
filename = "Tests/images/pil168.tif"
0 commit comments