From 63ae7fbfe998558c0b4354ec665f954ffae870f2 Mon Sep 17 00:00:00 2001 From: Andrew Murray Date: Tue, 10 May 2016 22:20:49 +1000 Subject: [PATCH] Removed unnecessary lambdas --- Tests/test_file_tiff.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Tests/test_file_tiff.py b/Tests/test_file_tiff.py index ca0816351..22915a735 100644 --- a/Tests/test_file_tiff.py +++ b/Tests/test_file_tiff.py @@ -251,8 +251,8 @@ class TestFileTiff(PillowTestCase): filename = "Tests/images/pil136.tiff" im = Image.open(filename) - self.assert_warning(DeprecationWarning, lambda: im.tag_v2.as_dict()) - self.assert_warning(DeprecationWarning, lambda: im.tag.as_dict()) + self.assert_warning(DeprecationWarning, im.tag_v2.as_dict) + self.assert_warning(DeprecationWarning, im.tag.as_dict) def test_dict(self): # Arrange