Corrected context manager test

This commit is contained in:
Andrew Murray 2019-11-06 20:12:19 +11:00
parent 9c78c3f972
commit d79f2bb7dc

View File

@ -36,9 +36,8 @@ class TestImagePsd(PillowTestCase):
def test_context_manager(self):
def open():
im = Image.open(test_file)
with Image.open(test_file) as im:
im.load()
im.close()
self.assert_warning(None, open)