diff --git a/Tests/test_imagewin.py b/Tests/test_imagewin.py index 14cc2c7e3..c4a8b28e4 100644 --- a/Tests/test_imagewin.py +++ b/Tests/test_imagewin.py @@ -114,7 +114,7 @@ class TestImageWinDib(PillowTestCase): # Act/Assert self.assertRaises(Exception, dib.tostring) - self.assertRaises(Exception, lambda: dib.fromstring(test_buffer)) + self.assertRaises(Exception, dib.fromstring) if __name__ == '__main__':