mirror of
https://github.com/python-pillow/Pillow.git
synced 2025-02-04 13:40:54 +03:00
Removed unnecessary lambda
This commit is contained in:
parent
674515d568
commit
407aa77db4
|
@ -110,7 +110,7 @@ class TestFileTiff(PillowTestCase):
|
||||||
def test_bad_exif(self):
|
def test_bad_exif(self):
|
||||||
i = Image.open('Tests/images/hopper_bad_exif.jpg')
|
i = Image.open('Tests/images/hopper_bad_exif.jpg')
|
||||||
try:
|
try:
|
||||||
self.assert_warning(UserWarning, lambda: i._getexif())
|
self.assert_warning(UserWarning, i._getexif)
|
||||||
except struct.error:
|
except struct.error:
|
||||||
self.fail(
|
self.fail(
|
||||||
"Bad EXIF data passed incorrect values to _binary unpack")
|
"Bad EXIF data passed incorrect values to _binary unpack")
|
||||||
|
|
Loading…
Reference in New Issue
Block a user