Skip to content

Commit

Permalink
Merge cd9f37e into fcb17cf
Browse files Browse the repository at this point in the history
  • Loading branch information
hugovk committed Nov 1, 2019
2 parents fcb17cf + cd9f37e commit 666239a
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion Tests/test_file_tiff.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
import logging
import os
import warnings
from io import BytesIO

from PIL import Image, TiffImagePlugin
Expand Down Expand Up @@ -597,7 +598,11 @@ def test_close_on_load_nonexclusive(self):
def test_string_dimension(self):
# Assert that an error is raised if one of the dimensions is a string
with self.assertRaises(ValueError):
Image.open("Tests/images/string_dimension.tiff")
# Ignore this UserWarning which triggers for four tags:
# "Possibly corrupt EXIF data. Expecting to read 50404352 bytes but..."
with warnings.catch_warnings():
warnings.simplefilter("ignore", category=UserWarning)
Image.open("Tests/images/string_dimension.tiff")


@unittest.skipUnless(is_win32(), "Windows only")
Expand Down

0 comments on commit 666239a

Please sign in to comment.