mirror of
https://github.com/python-pillow/Pillow.git
synced 2025-01-13 18:56:17 +03:00
Merge pull request #4200 from radarhere/context_manager
Corrected context manager test
This commit is contained in:
commit
3418e2c18f
|
@ -36,9 +36,8 @@ class TestImagePsd(PillowTestCase):
|
|||
|
||||
def test_context_manager(self):
|
||||
def open():
|
||||
im = Image.open(test_file)
|
||||
im.load()
|
||||
im.close()
|
||||
with Image.open(test_file) as im:
|
||||
im.load()
|
||||
|
||||
self.assert_warning(None, open)
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user