Removed unnecessary lambda

This commit is contained in:
Andrew Murray 2015-12-02 16:49:30 +11:00
parent 674515d568
commit 407aa77db4

View File

@ -110,7 +110,7 @@ class TestFileTiff(PillowTestCase):
def test_bad_exif(self):
i = Image.open('Tests/images/hopper_bad_exif.jpg')
try:
self.assert_warning(UserWarning, lambda: i._getexif())
self.assert_warning(UserWarning, i._getexif)
except struct.error:
self.fail(
"Bad EXIF data passed incorrect values to _binary unpack")