From 407aa77db4f7142e52a512443b13453e849dd9a6 Mon Sep 17 00:00:00 2001 From: Andrew Murray Date: Wed, 2 Dec 2015 16:49:30 +1100 Subject: [PATCH] Removed unnecessary lambda --- Tests/test_file_tiff.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Tests/test_file_tiff.py b/Tests/test_file_tiff.py index 719888619..a191793e3 100644 --- a/Tests/test_file_tiff.py +++ b/Tests/test_file_tiff.py @@ -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")