mirror of
https://github.com/python-pillow/Pillow.git
synced 2025-01-26 17:24:31 +03:00
Don't use builtin as variable
This commit is contained in:
parent
947e34616c
commit
6de030a165
|
@ -27,13 +27,13 @@ class TestFileMsp(PillowTestCase):
|
|||
self.assertEqual(im.size, (128, 128))
|
||||
self.assert_image_similar(im, hopper("1"), 4)
|
||||
|
||||
def test_cannot_save_save_wrong_mode(self):
|
||||
def test_cannot_save_wrong_mode(self):
|
||||
# Arrange
|
||||
im = hopper()
|
||||
file = self.tempfile("temp.msp")
|
||||
filename = self.tempfile("temp.msp")
|
||||
|
||||
# Act/Assert
|
||||
self.assertRaises(IOError, lambda: im.save(file))
|
||||
self.assertRaises(IOError, lambda: im.save(filename))
|
||||
|
||||
|
||||
if __name__ == '__main__':
|
||||
|
|
Loading…
Reference in New Issue
Block a user