mirror of
https://github.com/python-pillow/Pillow.git
synced 2025-02-03 21:24:31 +03:00
Removed unnecessary lambdas
This commit is contained in:
parent
4a6e8d7e92
commit
24eb48e9e0
|
@ -32,7 +32,7 @@ class TestFileFitsStub(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
|
||||
|
|
|
@ -32,7 +32,7 @@ class TestFileHdf5Stub(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
|
||||
|
|
Loading…
Reference in New Issue
Block a user