diff --git a/Tests/test_file_bufrstub.py b/Tests/test_file_bufrstub.py index e2b63afc4..4932930ff 100644 --- a/Tests/test_file_bufrstub.py +++ b/Tests/test_file_bufrstub.py @@ -32,7 +32,7 @@ class TestFileBufrStub(PillowTestCase): im = Image.open(TEST_FILE) # Act / Assert: stub cannot load without an implemented handler - self.assertRaises(IOError, lambda: im.load()) + self.assertRaises(IOError, im.load) def test_save(self): # Arrange